.app-public{
  min-height:100vh;
  background:
    radial-gradient(circle at 82% 10%,rgba(47,123,232,.10),transparent 28rem),
    linear-gradient(135deg,#eef4fb 0%,#f7f9fc 52%,#edf3fa 100%);
}
.auth-shell{
  min-height:100vh;display:grid;grid-template-columns:minmax(390px,.92fr) minmax(480px,1.08fr);
}
.auth-brand-panel{
  position:relative;overflow:hidden;display:flex;flex-direction:column;
  min-height:100vh;padding:42px 46px;color:#fff;
  background:
    radial-gradient(circle at 18% 10%,rgba(97,158,244,.28),transparent 22rem),
    radial-gradient(circle at 88% 72%,rgba(45,115,220,.16),transparent 26rem),
    linear-gradient(160deg,var(--x-navy-800) 0%,var(--x-navy-950) 56%,var(--x-navy-1000) 100%);
}
.auth-brand-panel::after{
  content:"";position:absolute;right:-170px;bottom:-130px;width:540px;height:320px;
  border:1px solid rgba(142,185,245,.13);border-radius:50%;transform:rotate(-13deg);
}
.auth-brand-card{
  position:relative;z-index:2;width:min(260px,74%);padding:18px 20px;
  border:1px solid rgba(255,255,255,.12);border-radius:var(--x-radius-2xl);
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 22px 48px rgba(0,0,0,.14);
}
.auth-brand-card img{display:block;width:100%;height:auto}
.auth-brand-copy{
  position:relative;z-index:2;margin:auto 0;max-width:540px;padding:64px 0;
}
.auth-eyebrow{color:#a9c9f8!important}
.auth-brand-copy h1{
  margin:10px 0 12px;font-size:clamp(38px,4vw,58px);line-height:1.03;
  letter-spacing:-1.8px;color:#fff;
}
.auth-brand-copy p{
  max-width:500px;margin:0;color:rgba(223,235,250,.76);font-size:14px;line-height:1.72;
}
.auth-shield-card{
  position:relative;z-index:2;display:flex;align-items:center;gap:12px;
  width:min(470px,100%);padding:14px 16px;
  border:1px solid rgba(255,255,255,.11);border-radius:var(--x-radius-lg);
  background:rgba(255,255,255,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.auth-shield-card>span{
  width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;
  border-radius:11px;background:rgba(78,143,236,.22);color:#b9d4fb;
}
.auth-shield-card strong{display:block;font-size:10px;color:#fff}
.auth-shield-card small{display:block;margin-top:3px;color:rgba(216,231,249,.66);font-size:8px;line-height:1.45}
.auth-form-panel{
  display:grid;place-items:center;min-height:100vh;padding:40px;
}
.auth-login-card{
  width:min(500px,100%);padding:34px 36px;
  border:1px solid rgba(207,220,234,.92);border-radius:30px;
  background:rgba(255,255,255,.93);
  box-shadow:0 28px 80px rgba(22,53,91,.13),inset 0 1px 0 rgba(255,255,255,.9);
}
@supports(backdrop-filter:blur(1px)){
  .auth-login-card{backdrop-filter:blur(18px) saturate(1.05)}
}
.auth-login-card h2{
  margin:8px 0 8px;color:var(--x-ink-950);font-size:30px;line-height:1.08;letter-spacing:-.9px;
}
.auth-login-card>p{
  margin:0 0 22px;color:var(--x-ink-650);font-size:12px;line-height:1.6;
}
.auth-login-card form{display:grid;gap:14px}
.auth-login-card label{display:grid;gap:6px}
.auth-login-card label>span{color:var(--x-ink-650);font-size:8px;font-weight:850}
.auth-login-card input{
  min-height:48px;padding:0 13px;border-radius:13px!important;background:#fff;
}
.auth-submit{
  min-height:48px;margin-top:2px;border:0;border-radius:13px;
  background:linear-gradient(90deg,var(--x-cobalt-600),var(--x-cobalt-500));
  color:#fff;font-size:11px;font-weight:850;
  box-shadow:0 10px 22px rgba(31,103,216,.18);
}
.auth-submit:hover{box-shadow:0 14px 26px rgba(31,103,216,.22)}
.auth-register-prompt{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:18px;padding-top:16px;border-top:1px solid var(--x-line-soft);
  color:var(--x-ink-500);font-size:9px;
}
.auth-register-prompt a,.auth-secondary-link{
  color:var(--x-cobalt-600);font-weight:800;text-decoration:none;
}
.auth-secondary-link{display:inline-flex;margin-top:16px}
.auth-install-button,.auth-secondary-button{
  width:100%;min-height:42px;margin-top:10px;
  border:1px solid var(--x-line);border-radius:12px;
  background:#f8fafd;color:var(--x-ink-650);font-size:9px;font-weight:800;
}
.auth-install-button:hover,.auth-secondary-button:hover{border-color:#c8d9eb;background:#fff;color:var(--x-navy-800)}
.auth-footnote{margin-top:14px;color:var(--x-ink-350);font-size:8px;text-align:center}
.auth-mobile-brand{display:none}
.otp-input{
  font-family:var(--x-font-mono);font-size:25px!important;font-weight:850;letter-spacing:.42em;text-align:center;
}
.auth-resend-form{margin-top:9px}
@media(max-width:980px){
  .auth-shell{grid-template-columns:1fr}
  .auth-brand-panel{display:none}
  .auth-form-panel{min-height:100vh;padding:26px 18px}
  .auth-login-card{padding:28px 26px;border-radius:26px}
  .auth-mobile-brand{
    display:flex;align-items:center;justify-content:center;
    width:190px;min-height:74px;margin:0 auto 24px;padding:14px;
    border:1px solid #d7e4f3;border-radius:20px;
    background:linear-gradient(145deg,var(--x-navy-800),var(--x-navy-950));
    box-shadow:0 16px 34px rgba(10,39,79,.16);
  }
  .auth-mobile-brand img{width:100%;height:auto;filter:brightness(0) invert(1)}
}
@media(max-width:520px){
  .auth-form-panel{padding:18px 12px}
  .auth-login-card{padding:24px 20px;border-radius:22px}
  .auth-login-card h2{font-size:27px}
  .auth-register-prompt{align-items:flex-start;flex-direction:column}
}

/* R10 — registration password requirements */
.auth-password-card{
  margin-top:2px;
  padding:14px 15px;
  border:1px solid #d8e4f1;
  border-radius:16px;
  background:
    radial-gradient(circle at 92% 0%,rgba(47,123,232,.10),transparent 120px),
    linear-gradient(145deg,#fbfdff,#f4f8fd);
  box-shadow:0 10px 24px rgba(24,63,110,.055),inset 0 1px 0 rgba(255,255,255,.92);
}
.auth-password-card-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:11px;
}
.auth-password-card-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:linear-gradient(145deg,#e8f2ff,#dbeaff);
  color:#236bcf;
  font-size:12px;
  box-shadow:inset 0 0 0 1px rgba(47,123,232,.10);
}
.auth-password-card-head strong{
  display:block;
  color:var(--x-ink-950);
  font-size:10px;
  font-weight:850;
}
.auth-password-card-head small{
  display:block;
  margin-top:2px;
  color:var(--x-ink-500);
  font-size:8px;
  line-height:1.4;
}
.auth-password-rule-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.auth-password-rule-grid>span{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:6px 8px;
  border:1px solid #e3eaf3;
  border-radius:10px;
  background:rgba(255,255,255,.72);
  color:var(--x-ink-500);
  font-size:8.5px;
  font-weight:700;
  transition:.16s ease;
}
.auth-password-rule-grid i{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eef2f7;
  color:#a4b0bf;
  font-style:normal;
  font-size:9px;
}
.auth-password-rule-grid>span.is-valid{
  border-color:#bfe2d3;
  background:#f2fbf7;
  color:#17684b;
}
.auth-password-rule-grid>span.is-valid i{
  background:#dff4e9;
  color:#15825a;
}
.auth-password-rule-grid>span.is-invalid{
  border-color:#e5eaf0;
}
.auth-password-error{
  margin-top:10px;
  padding:9px 10px;
  border:1px solid #efc1c1;
  border-radius:10px;
  background:#fff3f3;
  color:#a33636;
  font-size:8.5px;
  font-weight:750;
  line-height:1.45;
}
.auth-register-card input[aria-invalid="true"]{
  border-color:#d99a9a!important;
  box-shadow:0 0 0 3px rgba(185,61,61,.08)!important;
}
html[data-theme="dark"] .auth-password-card{
  border-color:#2e4055;
  background:
    radial-gradient(circle at 92% 0%,rgba(79,145,235,.12),transparent 120px),
    linear-gradient(145deg,#0f1c2c,#101f31);
  box-shadow:0 10px 24px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-theme="dark"] .auth-password-card-head strong{color:#f5f8fc}
html[data-theme="dark"] .auth-password-card-head small{color:#93a6bc}
html[data-theme="dark"] .auth-password-rule-grid>span{
  border-color:#2d3f54;
  background:#132235;
  color:#94a6bb;
}
html[data-theme="dark"] .auth-password-rule-grid>span.is-valid{
  border-color:#285846;
  background:#102d24;
  color:#8fd9ba;
}
html[data-theme="dark"] .auth-password-error{
  border-color:#663f43;
  background:#30191d;
  color:#f1aeb4;
}
@media(max-width:520px){
  .auth-password-rule-grid{grid-template-columns:1fr}
}

/* R36 — premium mobile login */
.auth-input-shell{position:relative}
.auth-input-shell::before{
  content:"";position:absolute;left:15px;top:50%;width:20px;height:20px;transform:translateY(-50%);
  background-repeat:no-repeat;background-position:center;background-size:20px 20px;pointer-events:none;opacity:.78
}
.auth-input-email::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7895' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E")
}
.auth-input-password::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7895' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")
}
.auth-input-shell>input{padding-left:47px!important}
.auth-input-password>input{padding-right:54px!important}
.auth-password-toggle{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:40px;height:40px;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;color:#6a809b
}
.auth-password-toggle:hover{background:#eef5fd;color:#1e62c8}
.auth-password-toggle>span{display:block;width:22px;height:22px;margin:auto;background-repeat:no-repeat;background-position:center;background-size:22px 22px}
.auth-password-toggle>span{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a809b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.8'/%3E%3C/svg%3E")
}
.auth-password-toggle[aria-pressed="true"]>span{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c6dcc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.7a2 2 0 0 0 2.7 2.7'/%3E%3Cpath d='M9.9 5.2A10 10 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-3.1 3.9M6.6 6.7C3.7 8.5 2 12 2 12a17 17 0 0 0 6.7 6.1'/%3E%3C/svg%3E")
}

@media(max-width:980px){
  .app-public{
    background:
      radial-gradient(circle at 82% 4%,rgba(72,151,255,.18),transparent 19rem),
      radial-gradient(circle at 4% 72%,rgba(104,174,255,.10),transparent 17rem),
      linear-gradient(160deg,#edf5ff 0%,#f7faff 46%,#eef5fc 100%)
  }
  .auth-shell{min-height:100svh}
  .auth-form-panel{min-height:100svh;align-items:flex-start;padding:clamp(26px,5vh,54px) 18px 30px}
  .auth-login-card{
    position:relative;overflow:hidden;width:min(620px,100%);
    padding:38px 36px 32px;border:1px solid rgba(185,205,228,.88);border-radius:34px;
    background:rgba(255,255,255,.95);
    box-shadow:0 30px 80px rgba(28,66,112,.14),inset 0 1px 0 rgba(255,255,255,.96)
  }
  .auth-login-card::before{
    content:"";position:absolute;inset:0 0 auto;height:7px;
    background:linear-gradient(90deg,#1f67dc,#3aa0ff)
  }
  .auth-mobile-brand{
    display:flex;align-items:center;justify-content:center;
    width:100%;min-height:156px;margin:0 auto 34px;padding:24px 28px;
    border:1px solid #d5e4f4;border-radius:28px;
    background:
      radial-gradient(circle at 72% 26%,rgba(78,157,255,.13),transparent 10rem),
      linear-gradient(145deg,#ffffff,#f7fbff);
    box-shadow:0 18px 46px rgba(22,61,108,.09),inset 0 1px 0 #fff
  }
  .auth-mobile-brand img{width:min(360px,88%);height:auto;filter:none!important}

  .auth-login-card>.eyebrow{display:block;margin-bottom:14px;color:#1764ce;font-size:11px;letter-spacing:.14em;font-weight:900}
  .auth-login-card h2{margin:0 0 12px;font-size:clamp(38px,7vw,48px);line-height:1.02;letter-spacing:-1.5px;color:#0d2340}
  .auth-login-card>p{max-width:540px;margin:0 0 28px;color:#687c93;font-size:16px;line-height:1.52}
  .auth-login-card form{gap:18px}
  .auth-login-card label{gap:8px}
  .auth-login-card label>span{color:#3c536f;font-size:13px;font-weight:850}
  .auth-login-card input{
    min-height:62px;border:1px solid #cbd9e8;border-radius:18px!important;
    background:#fbfdff;color:#132c49;font-size:16px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease
  }
  .auth-login-card input::placeholder{color:#9aa9ba;opacity:1}
  .auth-login-card input:focus{border-color:#6fa7ea;box-shadow:0 0 0 4px rgba(53,123,220,.11);background:#fff}
  .auth-input-shell::before{left:18px;width:22px;height:22px;background-size:22px 22px}
  .auth-input-shell>input{padding-left:54px!important}
  .auth-input-password>input{padding-right:60px!important}
  .auth-password-toggle{right:10px;width:42px;height:42px}
  .auth-submit{
    position:relative;display:flex;align-items:center;justify-content:center;
    min-height:64px;margin-top:2px;padding:0 58px;border-radius:19px;
    font-size:19px;font-weight:900;letter-spacing:-.2px;
    background:linear-gradient(92deg,#145fd8 0%,#2d7fee 52%,#36a2ff 100%);
    box-shadow:0 16px 32px rgba(35,108,222,.22)
  }

  .auth-submit:hover{box-shadow:0 20px 38px rgba(35,108,222,.28);transform:translateY(-1px)}
  .auth-submit-arrow{position:absolute;right:24px;font-size:26px;font-weight:400;line-height:1}
  .auth-register-prompt{
    display:grid;grid-template-columns:1fr;gap:10px;
    margin-top:22px;padding:20px 22px;border:1px solid #d8e5f3;border-radius:20px;
    background:
      radial-gradient(circle at 92% 8%,rgba(75,151,244,.10),transparent 8rem),
      linear-gradient(145deg,#fbfdff,#f5f9fe);
    color:#60758d;font-size:13px;line-height:1.48
  }
  .auth-register-prompt a{
    display:inline-flex;align-items:center;gap:8px;width:max-content;
    color:#1767d3;font-size:14px;font-weight:900
  }
  .auth-install-button{
    display:flex;align-items:center;justify-content:center;gap:10px;
    min-height:56px;margin-top:16px;border:1px solid #d9e3ee;border-radius:17px;
    background:linear-gradient(180deg,#f8fafc,#f1f5f9);color:#8493a5;font-size:13px;font-weight:850;
    box-shadow:none
  }
  .auth-footnote{
    margin-top:24px;padding-top:21px;border-top:1px solid #e9eff6;
    color:#a2afbd;font-size:12px;text-align:center
  }
  .auth-login-card .success,.auth-login-card .error{margin:0 0 18px;border-radius:14px}
}
@media(max-width:520px){
  .auth-form-panel{padding:20px 12px 24px}
  .auth-login-card{padding:30px 22px 26px;border-radius:28px}
  .auth-mobile-brand{min-height:132px;margin-bottom:28px;padding:20px 22px;border-radius:23px}
  .auth-mobile-brand img{width:min(310px,90%)}
  .auth-login-card>.eyebrow{margin-bottom:12px;font-size:10px}
  .auth-login-card h2{font-size:39px}
  .auth-login-card>p{margin-bottom:24px;font-size:15px}
  .auth-register-prompt{padding:18px}
}

/* R36 — refined mobile brand lockup after visual QA */
@media(max-width:980px){
  .auth-mobile-brand{flex-direction:row;gap:22px;min-height:150px;padding:24px 30px}
  .auth-mobile-mark{
    width:90px!important;height:90px!important;flex:0 0 90px;object-fit:cover;
    border-radius:24px;box-shadow:0 16px 34px rgba(14,58,122,.20)
  }
  .auth-mobile-wordmark{
    width:min(260px,calc(100% - 112px))!important;height:auto!important;
    filter:none!important;mix-blend-mode:multiply
  }
}
@media(max-width:520px){
  .auth-mobile-brand{gap:17px;min-height:126px;padding:18px 20px}
  .auth-mobile-mark{width:72px!important;height:72px!important;flex-basis:72px;border-radius:20px}
  .auth-mobile-wordmark{width:min(220px,calc(100% - 89px))!important}
}

/* R36 — premium registration prompt refinement */
@media(max-width:980px){
  .auth-register-prompt{
    grid-template-columns:50px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:14px;row-gap:7px;align-items:center;
    padding:18px 20px;font-size:14px!important
  }
  .auth-register-prompt::before{
    content:"";grid-column:1;grid-row:1 / 3;width:50px;height:50px;border-radius:17px;
    background:
      #e8f2ff
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b6bd8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.5 19c.6-3.4 2.5-5.2 5.5-5.2 2 0 3.6.8 4.6 2.3'/%3E%3Cpath d='M17.5 11.5v6M14.5 14.5h6'/%3E%3C/svg%3E")
      center/25px 25px no-repeat;
    box-shadow:inset 0 0 0 1px rgba(44,111,206,.08)
  }
  .auth-register-prompt>span:first-child{
    grid-column:2;grid-row:1;color:#5f748d;font-size:13px;line-height:1.45
  }
  .auth-register-prompt a{
    grid-column:2;grid-row:2;font-size:15px!important;line-height:1.3
  }
}

@media(max-width:980px){
  .auth-register-prompt a span{
    display:inline!important;color:inherit!important;font-size:15px!important;line-height:1.3!important
  }
}
