/* AUTH-UX-01 — Premium Sign-in / Sign-up refresh
   Visual-only parallel track. Authentication actions, field names, provider
   routing and server-side lifecycle/security contracts remain unchanged. */

.authux-shell{
  position:relative;
  isolation:isolate;
  min-height:calc(100vh - 88px);
  padding:clamp(2rem,4vw,4.5rem) clamp(1rem,3vw,2rem);
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 8%,rgba(24,190,235,.18),transparent 31rem),
    radial-gradient(circle at 94% 84%,rgba(116,73,232,.14),transparent 34rem),
    linear-gradient(145deg,#eef8ff 0%,#f8fbff 42%,#f5f2ff 100%);
}

.authux-shell::before,
.authux-shell::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  border-radius:999px;
  filter:blur(2px);
}

.authux-shell::before{
  width:22rem;
  height:22rem;
  left:-8rem;
  bottom:-10rem;
  background:linear-gradient(135deg,rgba(4,157,211,.13),rgba(72,72,220,.08));
}

.authux-shell::after{
  width:18rem;
  height:18rem;
  right:-7rem;
  top:-6rem;
  background:linear-gradient(135deg,rgba(98,61,218,.12),rgba(17,180,220,.1));
}

.authux-stage{
  width:min(1180px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(430px,1.08fr);
  border:1px solid rgba(19,73,126,.14);
  border-radius:clamp(1.6rem,3vw,2.4rem);
  overflow:hidden;
  background:rgba(255,255,255,.76);
  box-shadow:
    0 32px 90px rgba(7,31,65,.16),
    inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.authux-story{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:710px;
  padding:clamp(2rem,4vw,3.5rem);
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 20% 15%,rgba(58,217,255,.22),transparent 18rem),
    radial-gradient(circle at 88% 82%,rgba(132,91,255,.22),transparent 20rem),
    linear-gradient(148deg,#06152e 0%,#0a2850 48%,#102e67 100%);
}

.authux-story::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.36;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:38px 38px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),transparent 92%);
}

.authux-story::after{
  content:"";
  position:absolute;
  width:16rem;
  height:16rem;
  right:-7rem;
  bottom:3rem;
  border:1px solid rgba(124,222,255,.28);
  border-radius:50%;
  box-shadow:
    0 0 0 2.7rem rgba(89,151,255,.04),
    0 0 0 5.4rem rgba(132,88,255,.035);
  pointer-events:none;
}

.authux-story > *{
  position:relative;
  z-index:1;
}

.authux-brand{
  display:flex;
  align-items:center;
  gap:1rem;
}

.authux-brand img{
  width:70px;
  height:70px;
  object-fit:contain;
  border-radius:22px;
  padding:.32rem;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}

.authux-brand div{
  display:grid;
  gap:.18rem;
}

.authux-brand-kicker{
  color:#77ddff;
  font-size:.72rem;
  line-height:1;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.authux-brand strong{
  color:#fff;
  font-size:1.05rem;
  letter-spacing:-.015em;
}

.authux-story-copy{
  margin-top:clamp(3rem,8vh,6.4rem);
  max-width:31rem;
}

.authux-kicker{
  display:inline-flex;
  align-items:center;
  min-height:2rem;
  padding:.42rem .72rem;
  border:1px solid rgba(123,220,255,.25);
  border-radius:999px;
  background:rgba(63,182,234,.1);
  color:#a6ebff;
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.authux-story-copy h1{
  margin:1.15rem 0 1rem;
  color:#fff;
  font-size:clamp(2.25rem,4vw,4.15rem);
  line-height:.98;
  letter-spacing:-.052em;
  text-wrap:balance;
}

.authux-story-copy > p{
  margin:0;
  max-width:29rem;
  color:#c8d9ee;
  font-size:clamp(.95rem,1.15vw,1.08rem);
  line-height:1.75;
}

.authux-trust-list{
  display:grid;
  gap:.8rem;
  margin-top:2.2rem;
}

.authux-trust-list > div{
  display:grid;
  grid-template-columns:2.3rem 1fr;
  align-items:start;
  gap:.8rem;
  padding:.78rem 0;
  border-top:1px solid rgba(255,255,255,.1);
}

.authux-trust-icon{
  display:grid;
  place-items:center;
  width:2.15rem;
  height:2.15rem;
  border:1px solid rgba(113,220,255,.26);
  border-radius:.75rem;
  background:rgba(255,255,255,.065);
  color:#8ee5ff;
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.08em;
}

.authux-trust-list p{
  display:grid;
  gap:.24rem;
  margin:0;
}

.authux-trust-list strong{
  color:#f7fbff;
  font-size:.87rem;
}

.authux-trust-list p span{
  color:#9fb4cf;
  font-size:.78rem;
  line-height:1.5;
}

.authux-security-note{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin:auto 0 0;
  padding-top:2rem;
  color:#9db6d2;
  font-size:.75rem;
}

.authux-security-note > span{
  color:#32d9ad;
  font-size:.72rem;
}

.authux-shell .authux-card{
  width:auto;
  min-width:0;
  min-height:710px;
  border:0;
  border-radius:0;
  padding:clamp(2rem,4vw,3.65rem);
  background:rgba(255,255,255,.94);
  box-shadow:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.authux-card-heading{
  max-width:34rem;
}

.authux-shell .authux-eyebrow{
  display:inline-block;
  color:#087fb8;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.authux-shell .authux-card h2{
  margin:.6rem 0 .65rem;
  color:#071a37;
  font-size:clamp(2.05rem,4vw,3.35rem);
  line-height:1.02;
  letter-spacing:-.048em;
  text-wrap:balance;
}

.authux-card-heading > p{
  margin:0;
  max-width:35rem;
  color:#65758b;
  font-size:.93rem;
  line-height:1.65;
}

.authux-alert-region:empty{
  display:none;
}

.authux-shell .account-alert{
  margin:1.15rem 0 0;
  border-radius:1rem;
  padding:.9rem 1rem;
  line-height:1.5;
  box-shadow:0 8px 24px rgba(87,57,12,.04);
}

.authux-shell .external-provider-panel{
  margin-top:1.5rem;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.authux-shell .external-provider-intro{
  margin-bottom:.9rem;
}

.authux-shell .external-provider-intro > span{
  color:#7a5fc8;
  letter-spacing:.11em;
}

.authux-shell .external-provider-intro h2{
  margin:.2rem 0 .3rem;
  font-size:1.02rem;
  letter-spacing:-.02em;
}

.authux-shell .external-provider-intro p{
  font-size:.79rem;
  line-height:1.5;
}

.authux-shell .external-provider-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.65rem;
  margin-top:.8rem;
}

.authux-shell .external-login-button{
  min-height:3.2rem;
  justify-content:flex-start;
  padding:.72rem .9rem;
  border:1px solid #d9e5f2;
  border-radius:1rem;
  background:#fff;
  color:#112a4d;
  box-shadow:0 8px 22px rgba(9,31,66,.07);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

.authux-shell .external-login-button::before{
  display:none;
  content:none;
  animation:none;
}

.authux-shell .external-login-button:hover{
  transform:translateY(-2px);
  border-color:#8cc8e4;
  box-shadow:0 13px 28px rgba(9,31,66,.12);
}

.authux-shell .external-login-button:focus-visible,
.authux-shell .authux-primary-action:focus-visible,
.authux-shell .account-links a:focus-visible,
.authux-shell .account-footnote a:focus-visible{
  outline:3px solid rgba(10,154,211,.3);
  outline-offset:3px;
}

.authux-shell .provider-mark{
  width:1.8rem;
  height:1.8rem;
  border-radius:.62rem;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}

.authux-shell .provider-google .provider-mark{
  background:linear-gradient(135deg,#fff,#f7faff);
  color:#3576d3;
  border-color:#dbe5f0;
}

.authux-shell .provider-microsoft .provider-mark{
  background:linear-gradient(135deg,#2563eb,#1a4fbf);
}

.authux-shell .provider-linkedin .provider-mark{
  background:linear-gradient(135deg,#0a66c2,#07549e);
}

.authux-shell .provider-github .provider-mark{
  background:linear-gradient(135deg,#24292f,#0d1117);
}

.authux-shell .external-login-divider{
  margin:1.15rem 0 1rem;
  color:#8693a5;
  font-size:.67rem;
  letter-spacing:.1em;
}

.authux-shell .external-login-divider::before,
.authux-shell .external-login-divider::after{
  background:linear-gradient(90deg,transparent,#d8e2ee);
}

.authux-shell .external-login-divider::after{
  background:linear-gradient(90deg,#d8e2ee,transparent);
}

.authux-form{
  gap:.9rem;
  margin-top:.2rem;
}

.authux-form label{
  gap:.42rem;
  color:#203b5e;
  font-size:.76rem;
  letter-spacing:.01em;
}

.authux-form label > span{
  display:block;
}

.authux-form input{
  min-height:3.25rem;
  padding:.86rem .95rem;
  border:1px solid #d4e0ec;
  border-radius:.95rem;
  background:#fbfdff;
  color:#0b1d38;
  font-size:.9rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 5px 16px rgba(10,38,72,.035);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.authux-form input::placeholder{
  color:#9aa8ba;
}

.authux-form input:hover{
  border-color:#b5cbdc;
}

.authux-form input:focus{
  border-color:#0aa7d8;
  background:#fff;
  box-shadow:0 0 0 4px rgba(10,167,216,.1);
}

.authux-shell .authux-primary-action{
  width:100%;
  min-height:3.3rem;
  margin-top:.35rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.82rem 1.1rem;
  border:1px solid rgba(29,119,185,.45);
  border-radius:1rem;
  color:#fff;
  font-weight:900;
  letter-spacing:.01em;
  background:
    linear-gradient(135deg,#087db9 0%,#0a9ed0 48%,#4656bb 100%);
  box-shadow:0 14px 30px rgba(8,105,171,.22);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

.authux-shell .authux-primary-action:hover{
  transform:translateY(-1px);
  filter:saturate(1.06);
  box-shadow:0 18px 36px rgba(8,105,171,.28);
}

.authux-shell .authux-account-links{
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid #e5ebf2;
}

.authux-shell .authux-account-links a,
.authux-shell .authux-account-footnote a{
  color:#087db9;
  text-decoration:none;
  font-weight:850;
}

.authux-shell .authux-account-links a:hover,
.authux-shell .authux-account-footnote a:hover{
  text-decoration:underline;
  text-underline-offset:.18rem;
}

.authux-shell .authux-account-footnote{
  margin:1rem 0 0;
  text-align:center;
  color:#738196;
}

.authux-password-policy{
  margin:0;
  padding:.85rem .9rem;
  gap:.35rem;
  border:1px solid #dce6f0;
  border-radius:.9rem;
  background:linear-gradient(145deg,#f8fbff,#f2f8fc);
  font-size:.75rem;
}

.authux-password-policy strong{
  font-size:.77rem;
}

.authux-password-policy span::before{
  color:#0a9a73;
}

.authux-privacy-note{
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  margin-top:1.15rem;
  padding:.85rem .95rem;
  border:1px solid #e4eaf1;
  border-radius:.9rem;
  background:#f8fafc;
  color:#738196;
  font-size:.72rem;
  line-height:1.5;
}

.authux-lock{
  color:#0a9a73;
  line-height:1.45;
}

@media(max-width:980px){
  .authux-shell{
    padding:2rem 1rem;
  }

  .authux-stage{
    grid-template-columns:1fr;
    max-width:760px;
  }

  .authux-story{
    min-height:auto;
    padding:2rem;
  }

  .authux-story-copy{
    margin-top:2.3rem;
    max-width:38rem;
  }

  .authux-story-copy h1{
    max-width:34rem;
  }

  .authux-trust-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.7rem;
  }

  .authux-trust-list > div{
    grid-template-columns:1fr;
    border:1px solid rgba(255,255,255,.1);
    border-radius:1rem;
    padding:.85rem;
    background:rgba(255,255,255,.04);
  }

  .authux-security-note{
    margin-top:1.4rem;
    padding-top:0;
  }

  .authux-shell .authux-card{
    min-height:auto;
  }
}

@media(max-width:680px){
  .authux-shell{
    min-height:auto;
    padding:1rem .7rem 2.5rem;
  }

  .authux-stage{
    border-radius:1.35rem;
  }

  .authux-story{
    padding:1.35rem;
  }

  .authux-brand img{
    width:56px;
    height:56px;
    border-radius:17px;
  }

  .authux-story-copy{
    margin-top:1.8rem;
  }

  .authux-story-copy h1{
    font-size:clamp(2rem,11vw,3rem);
  }

  .authux-trust-list{
    grid-template-columns:1fr;
  }

  .authux-trust-list > div:nth-child(3){
    display:none;
  }

  .authux-shell .authux-card{
    padding:1.35rem;
  }

  .authux-shell .authux-card h2{
    font-size:clamp(1.85rem,9vw,2.65rem);
  }

  .authux-shell .external-provider-grid{
    grid-template-columns:1fr;
  }

  .authux-shell .external-login-button{
    min-height:3rem;
  }

  .authux-shell .authux-account-links{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(prefers-reduced-motion:reduce){
  .authux-shell *,
  .authux-shell *::before,
  .authux-shell *::after{
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important;
  }

  .authux-shell .external-login-button:hover,
  .authux-shell .authux-primary-action:hover{
    transform:none;
  }
}

@media(forced-colors:active){
  .authux-stage,
  .authux-story,
  .authux-shell .authux-card,
  .authux-shell .external-login-button,
  .authux-form input,
  .authux-password-policy,
  .authux-privacy-note{
    border:1px solid CanvasText;
  }
}


/* AUTH-UX-01 R2 — provider-fit + restrained luminous motion */
@keyframes authuxButtonSweep{
  0%,72%{transform:translateX(-165%) skewX(-18deg);opacity:0}
  78%{opacity:.12}
  86%{opacity:.48}
  94%,100%{transform:translateX(245%) skewX(-18deg);opacity:0}
}
@keyframes authuxEdgeBreath{
  0%,100%{box-shadow:0 8px 22px rgba(9,31,66,.07)}
  50%{box-shadow:0 10px 28px rgba(18,127,190,.16),0 0 0 1px rgba(44,180,229,.14)}
}
@keyframes authuxPrimaryGlow{
  0%,100%{box-shadow:0 14px 30px rgba(8,105,171,.22)}
  50%{box-shadow:0 18px 38px rgba(8,105,171,.32),0 0 26px rgba(41,188,231,.18)}
}
@keyframes authuxSoftFlash{
  0%,82%,100%{filter:brightness(1);opacity:1}
  88%{filter:brightness(1.08);opacity:1}
  92%{filter:brightness(1.02);opacity:.96}
}

.authux-shell .external-login-button{
  white-space:nowrap;
  font-size:.78rem;
  gap:.58rem;
  padding-inline:.78rem;
  animation:authuxEdgeBreath 5.8s ease-in-out infinite;
}

.authux-shell .external-login-button > span:last-child{
  min-width:0;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}

.authux-shell .external-login-button::after{
  content:"";
  position:absolute;
  top:-45%;
  left:-42%;
  width:30%;
  height:190%;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.78),transparent);
  transform:translateX(-165%) skewX(-18deg);
  animation:authuxButtonSweep 6.8s ease-in-out infinite;
}

.authux-shell .authux-primary-action{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  animation:authuxPrimaryGlow 4.8s ease-in-out infinite;
}

.authux-shell .authux-primary-action::after{
  content:"";
  position:absolute;
  z-index:-1;
  top:-55%;
  left:-35%;
  width:28%;
  height:210%;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);
  transform:translateX(-170%) skewX(-18deg);
  animation:authuxButtonSweep 5.8s ease-in-out infinite;
}

.authux-kicker,
.authux-trust-icon,
.authux-brand img{
  animation:authuxSoftFlash 7.5s ease-in-out infinite;
}

.authux-trust-list > div:nth-child(2) .authux-trust-icon{animation-delay:.55s}
.authux-trust-list > div:nth-child(3) .authux-trust-icon{animation-delay:1.1s}
.authux-shell .external-provider-grid .external-login-form:nth-child(2) .external-login-button{animation-delay:.35s}
.authux-shell .external-provider-grid .external-login-form:nth-child(3) .external-login-button{animation-delay:.7s}
.authux-shell .external-provider-grid .external-login-form:nth-child(4) .external-login-button{animation-delay:1.05s}

@media(max-width:760px){
  .authux-shell .external-login-button{
    font-size:.8rem;
  }
}

@media(prefers-reduced-motion:reduce){
  .authux-shell .external-login-button,
  .authux-shell .authux-primary-action,
  .authux-kicker,
  .authux-trust-icon,
  .authux-brand img,
  .authux-shell .external-login-button::after,
  .authux-shell .authux-primary-action::after{
    animation:none!important;
  }
}
