:root{
  --rxp-blue:#075fe8;
  --rxp-blue-2:#0a3a8c;
  --rxp-teal:#10b9ac;
  --rxp-ink:#0f172a;
  --rxp-muted:#65758b;
  --rxp-line:#dbe7f4;
  --rxp-soft:#f4f8fc;
  --rxp-shadow:0 28px 80px rgba(15,23,42,.13);
}
.rx-standard-shell,
.rx-standard-shell *{font-family:Calibri,Candara,"Segoe UI",Arial,sans-serif!important;}
.rx-standard-shell .rx-topbar{
  position:sticky!important;top:0!important;z-index:80!important;height:72px!important;padding:0 clamp(14px,3vw,38px)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(18px)!important;border-bottom:1px solid rgba(219,231,244,.9)!important;box-shadow:0 10px 30px rgba(15,23,42,.05)!important;
}
.rx-standard-shell .rx-topbar .rx-logo-brand.compact{height:56px!important;max-width:230px!important;min-width:140px!important;display:flex!important;align-items:center!important;overflow:hidden!important;}
.rx-standard-shell .rx-topbar .rx-logo-brand.compact img{height:50px!important;width:auto!important;max-width:220px!important;object-fit:contain!important;display:block!important;}
.rx-standard-shell .rx-topnav{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:nowrap!important;min-width:0!important;}
.rx-standard-shell .rx-topnav a,
.rx-standard-shell .rx-topnav button{
  min-height:38px!important;border-radius:999px!important;padding:0 15px!important;border:1px solid rgba(15,95,232,.12)!important;background:#fff!important;color:#10213f!important;box-shadow:0 10px 24px rgba(15,23,42,.06)!important;font-weight:800!important;font-size:14px!important;line-height:1!important;text-decoration:none!important;white-space:nowrap!important;
}
.rx-standard-shell .rx-topnav a[href$="/login"],
.rx-standard-shell .rx-topnav button{background:linear-gradient(135deg,var(--rxp-blue),var(--rxp-teal))!important;color:#fff!important;border-color:transparent!important;}
.rx-standard-shell .rx-page{padding:0!important;min-height:calc(100vh - 72px)!important;background:linear-gradient(135deg,#f7fbff 0%,#eef7ff 48%,#fbfdff 100%)!important;overflow-x:hidden!important;}
.rxfi-index{padding-top:0!important;}
.rxfi-hero{min-height:calc(100vh - 72px)!important;}
.rxfi-hero .rxfi-bg-layer{top:0!important;}
.rxfi-hero-grid{padding-top:clamp(34px,5vw,70px)!important;}
.rxfi-hero-actions a[href*="onboarding?role=doctor"],
.rxfi-hero-actions a[href*="onboarding?role=owner"]{display:none!important;}
.rxopd-public-auth-screen{
  min-height:calc(100vh - 72px);display:grid;place-items:center;padding:clamp(18px,4vw,52px);background:radial-gradient(circle at 15% 12%,rgba(7,95,232,.14),transparent 28%),radial-gradient(circle at 86% 18%,rgba(16,185,172,.14),transparent 30%),linear-gradient(135deg,#f7fbff 0%,#edf6ff 52%,#fff 100%);
}
.rxopd-public-auth-card{
  width:min(520px,100%);border:1px solid rgba(219,231,244,.95);border-radius:32px;background:rgba(255,255,255,.96);box-shadow:var(--rxp-shadow);padding:clamp(18px,3vw,28px);position:relative;overflow:hidden;
}
.rxopd-public-auth-card:before{content:"";position:absolute;inset:-90px auto auto -90px;width:200px;height:200px;border-radius:999px;background:rgba(7,95,232,.08);pointer-events:none;}
.rxopd-public-auth-logo{display:flex;align-items:center;justify-content:center;margin:0 auto 14px;width:min(320px,86%);height:92px;text-decoration:none;position:relative;z-index:1;}
.rxopd-public-auth-logo img{display:block;max-width:100%;max-height:86px;object-fit:contain;}
.rxopd-public-auth-heading{text-align:center;position:relative;z-index:1;margin-bottom:16px;}
.rxopd-public-auth-heading span{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eaf6ff;border:1px solid #cfe7ff;color:#0b4bb2;padding:5px 11px;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.rxopd-public-auth-heading h1{margin:10px 0 5px;color:var(--rxp-ink);font-size:clamp(25px,5vw,36px);line-height:1;letter-spacing:-.045em;font-weight:900;}
.rxopd-public-auth-heading p{margin:0;color:var(--rxp-muted);font-size:15px;font-weight:700;}
.rxopd-public-auth-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0;position:relative;z-index:1;}
.rxopd-public-auth-tabs button,
.rxopd-public-auth-tabs a{min-height:42px;border-radius:16px;border:1px solid var(--rxp-line);background:#fff;color:#13233f;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-size:13px;font-weight:850;line-height:1.1;padding:0 10px;box-shadow:0 10px 22px rgba(15,23,42,.05);cursor:pointer;}
.rxopd-public-auth-tabs button.active{background:linear-gradient(135deg,var(--rxp-blue),var(--rxp-teal));color:#fff;border-color:transparent;box-shadow:0 16px 34px rgba(7,95,232,.2);}
.rxopd-public-auth-panel{display:none;position:relative;z-index:1;}
.rxopd-public-auth-panel.active{display:block;}
.rxopd-public-auth-form{display:grid;gap:12px;}
.rxopd-public-auth-form label{display:grid;gap:6px;color:#17233f;font-size:14px;font-weight:850;}
.rxopd-public-auth-form input{width:100%;height:48px;border-radius:16px;border:1px solid var(--rxp-line);background:#f9fcff;padding:0 14px;color:#0f172a;font-size:15px;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);}
.rxopd-public-auth-form input:focus{border-color:rgba(7,95,232,.58);box-shadow:0 0 0 4px rgba(7,95,232,.1);background:#fff;}
.rxopd-public-auth-submit{height:48px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--rxp-blue),var(--rxp-teal));color:#fff;font-weight:900;box-shadow:0 18px 38px rgba(7,95,232,.2);cursor:pointer;}
.rxopd-public-auth-linkbtn{height:42px;border-radius:14px;border:1px solid var(--rxp-line);background:#fff;color:#0b4bb2;font-weight:900;cursor:pointer;}
.rxopd-public-auth-card .alert{border-radius:16px;padding:10px 12px;margin:0 0 12px;font-weight:800;font-size:14px;}
.rxopd-public-auth-card .alert.error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;}
.rxopd-public-auth-card .alert.success{background:#ecfdf5;border:1px solid #bbf7d0;color:#047857;}
@media(max-width:780px){
  .rx-standard-shell .rx-topbar{height:auto!important;min-height:64px!important;padding:8px 12px!important;align-items:center!important;}
  .rx-standard-shell .rx-topbar .rx-logo-brand.compact{height:48px!important;min-width:112px!important;max-width:150px!important;}
  .rx-standard-shell .rx-topbar .rx-logo-brand.compact img{height:44px!important;max-width:148px!important;}
  .rx-standard-shell .rx-topnav{gap:6px!important;overflow-x:auto!important;padding-bottom:2px!important;scrollbar-width:none!important;}
  .rx-standard-shell .rx-topnav::-webkit-scrollbar{display:none!important;}
  .rx-standard-shell .rx-topnav a,.rx-standard-shell .rx-topnav button{min-height:34px!important;padding:0 10px!important;font-size:12px!important;border-radius:999px!important;}
  .rxopd-public-auth-screen{min-height:calc(100vh - 64px);padding:16px 10px;place-items:start center;}
  .rxopd-public-auth-card{border-radius:24px;padding:16px;}
  .rxopd-public-auth-logo{height:74px;margin-bottom:8px;}
  .rxopd-public-auth-logo img{max-height:70px;}
  .rxopd-public-auth-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .rxopd-public-auth-tabs button,.rxopd-public-auth-tabs a{min-height:40px;font-size:12.5px;border-radius:14px;}
  .rxfi-hero{min-height:auto!important;padding-top:0!important;}
  .rxfi-hero-grid{padding-top:28px!important;}
}
@media(max-width:390px){
  .rx-standard-shell .rx-topbar{gap:8px!important;}
  .rx-standard-shell .rx-topbar .rx-logo-brand.compact{max-width:126px!important;min-width:96px!important;}
  .rx-standard-shell .rx-topbar .rx-logo-brand.compact img{max-width:124px!important;height:40px!important;}
  .rx-standard-shell .rx-topnav a,.rx-standard-shell .rx-topnav button{font-size:11.5px!important;padding:0 8px!important;}
  .rxopd-public-auth-heading h1{font-size:25px;}
}
