/* RXOPD General Login production alignment — 2026-08-07
   Final cascade, login route only. No auth/backend behavior changes. */
html:has(body.rx-standard-shell.rx-ui-app .rxopd-login-clean),
body.rx-standard-shell.rx-ui-app:has(.rxopd-login-clean){
  width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;
}
body.rx-standard-shell.rx-ui-app:has(.rxopd-login-clean){
  background:radial-gradient(circle at 12% 22%,rgba(11,94,215,.09),transparent 30%),radial-gradient(circle at 88% 82%,rgba(7,155,114,.09),transparent 28%),#f7fbff!important;
}
body.rx-standard-shell.rx-ui-app:has(.rxopd-login-clean) .rx-topbar,
body.rx-standard-shell.rx-ui-app:has(.rxopd-login-clean) .rx-topbar.rx-hanging-header{margin-bottom:0!important;}
body.rx-standard-shell.rx-ui-app:has(.rxopd-login-clean) .rx-page{
  width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow-x:hidden!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-public-auth-screen.rxopd-login-clean{
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:calc(100dvh - 84px)!important;
  margin:0!important;padding:14px clamp(10px,2vw,22px) 22px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:transparent!important;overflow:visible!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean>.rxopd-public-auth-card{
  box-sizing:border-box!important;
  width:min(100%,478px)!important;max-width:478px!important;min-width:0!important;
  margin:0 auto!important;padding:18px 20px 16px!important;
  border:1px solid #d7e5f6!important;border-radius:22px!important;background:rgba(255,255,255,.97)!important;
  box-shadow:0 22px 54px rgba(8,36,92,.13)!important;overflow:hidden!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-logo{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:52px!important;margin:0 auto 2px!important;padding:0!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-logo img{
  display:block!important;width:auto!important;max-width:136px!important;height:auto!important;max-height:48px!important;object-fit:contain!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-heading{
  width:100%!important;margin:0 0 10px!important;text-align:center!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-heading>span{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:23px!important;margin:0 0 2px!important;padding:0 10px!important;border-radius:999px!important;
  background:#eafaf4!important;color:#08785a!important;font-size:9.5px!important;font-weight:900!important;letter-spacing:.07em!important;text-transform:uppercase!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-heading h1{
  margin:1px 0 5px!important;padding:0!important;color:#0b2b62!important;
  font-size:27px!important;line-height:1.02!important;letter-spacing:-.03em!important;text-align:center!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-tabs-main{
  width:min(100%,336px)!important;max-width:336px!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;
  margin:6px auto 8px!important;padding:0!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-tabs-main :is(button,a){
  box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:34px!important;height:34px!important;
  margin:0!important;padding:0 7px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid #cfe0f5!important;border-radius:999px!important;background:#0b9d72!important;color:#fff!important;
  box-shadow:none!important;font-size:10.5px!important;font-weight:900!important;line-height:1!important;text-align:center!important;text-decoration:none!important;white-space:nowrap!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-tabs-main button.active,
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-tabs-main button[aria-selected="true"]{
  background:#1267e4!important;border-color:#1267e4!important;color:#fff!important;box-shadow:0 7px 16px rgba(18,103,228,.18)!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-signup-tab{background:#0b9d72!important;border-color:#0b9d72!important;color:#fff!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-heading>p{
  margin:0 auto 6px!important;max-width:420px!important;color:#53677e!important;font-size:10.5px!important;line-height:1.25!important;text-align:center!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxui-role-chips{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:4px!important;margin:0!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxui-role-chips span{
  min-height:21px!important;padding:4px 7px!important;border-radius:999px!important;font-size:8.5px!important;line-height:1!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-panel{width:100%!important;min-width:0!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-form{
  width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:0!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-form>input[type="hidden"]{display:none!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-form label{
  width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:1fr!important;gap:4px!important;margin:0!important;
  color:#172b4d!important;font-size:10.8px!important;font-weight:850!important;line-height:1.2!important;text-align:left!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-form :is(input,select){
  box-sizing:border-box!important;width:100%!important;min-width:0!important;height:41px!important;min-height:41px!important;
  margin:0!important;padding:0 11px!important;border:1px solid #cfe0f5!important;border-radius:11px!important;
  background:#fff!important;color:#102a43!important;box-shadow:0 4px 12px rgba(11,94,215,.035)!important;font-size:12px!important;line-height:1.2!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-primary-actions{
  width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:1px!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-submit,
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-linkbtn{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;height:39px!important;min-height:39px!important;
  margin:0!important;padding:0 9px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:11px!important;font-size:10.8px!important;font-weight:900!important;line-height:1!important;text-align:center!important;text-decoration:none!important;white-space:nowrap!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-submit{
  border:1px solid #079b72!important;background:linear-gradient(135deg,#0ba879,#08785a)!important;color:#fff!important;box-shadow:0 8px 18px rgba(7,155,114,.15)!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-linkbtn{
  border:1px solid #cfe0f5!important;background:#f7fbff!important;color:#0b4bb2!important;box-shadow:none!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-otp-send-form>.rxopd-public-auth-submit,
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-otp-verify-form>.rxopd-public-auth-submit{width:100%!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links{
  width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;
  margin:10px 0 0!important;padding:10px 0 0!important;border-top:1px solid #e1ecf8!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links a{
  box-sizing:border-box!important;min-width:0!important;min-height:29px!important;margin:0!important;padding:5px 6px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
  border:1px solid #d9e6f5!important;border-radius:9px!important;background:#f8fbff!important;color:#0b4bb2!important;
  font-size:8.7px!important;font-weight:850!important;line-height:1.1!important;text-decoration:none!important;overflow-wrap:anywhere!important;
}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links a:nth-child(2){background:#effcf6!important;color:#047857!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links a:nth-child(4){background:#fff8ef!important;color:#b45309!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links a:nth-child(5){background:#f6f3ff!important;color:#6d28d9!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-server-alert{margin:0 0 8px!important;padding:8px 10px!important;font-size:10.5px!important;line-height:1.25!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-otp-verify-block{gap:8px!important;margin-top:0!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-otp-sent-note{padding:8px!important;font-size:10px!important;}
body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-otp-after-actions{gap:6px!important;margin-top:7px!important;}

@media(max-width:720px){
  body.rx-standard-shell.rx-ui-app .rxopd-public-auth-screen.rxopd-login-clean{
    min-height:calc(100dvh - 68px)!important;padding:8px 8px 14px!important;align-items:center!important;
  }
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean>.rxopd-public-auth-card{
    width:min(100%,440px)!important;max-width:440px!important;padding:13px 13px 12px!important;border-radius:18px!important;
  }
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-logo{height:43px!important;margin-bottom:0!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-logo img{max-width:118px!important;max-height:40px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-heading h1{font-size:23px!important;margin:0 0 4px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-heading>span{min-height:20px!important;font-size:8.7px!important;margin-bottom:1px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-tabs-main{width:min(100%,320px)!important;margin:5px auto 7px!important;gap:5px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-tabs-main :is(button,a){height:32px!important;min-height:32px!important;font-size:9.8px!important;padding:0 5px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-heading>p{font-size:9.5px!important;margin-bottom:5px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxui-role-chips{gap:3px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxui-role-chips span{font-size:8px!important;padding:3px 6px!important;min-height:19px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-form{gap:6px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-form label{gap:3px!important;font-size:9.8px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-form :is(input,select){height:38px!important;min-height:38px!important;font-size:11px!important;border-radius:10px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-submit,
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-public-auth-linkbtn{height:36px!important;min-height:36px!important;font-size:9.8px!important;border-radius:10px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links{margin-top:8px!important;padding-top:8px!important;gap:4px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links a{min-height:27px!important;padding:4px!important;font-size:8px!important;border-radius:8px!important;}
}
@media(max-width:390px){
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean>.rxopd-public-auth-card{padding:11px 10px 10px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-tabs-main{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-primary-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;}
  body.rx-standard-shell.rx-ui-app .rxopd-login-clean .rxopd-login-secondary-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
