.auth-gate{
  min-height:calc(100vh - 12rem);
  display:grid;
  place-items:center;
  padding:2rem 0 4rem;
}

.auth-panel{
  width:min(720px,100%);
  border:1px solid rgba(11,18,43,.12);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,255,.96));
  box-shadow:0 20px 55px rgba(9,18,43,.08);
  padding:2rem;
}

.auth-brand{
  color:#09122b;
  font-size:.85rem;
  font-weight:850;
  letter-spacing:.16em;
}

.auth-panel h1{
  margin:.35rem 0 .75rem;
  font-size:clamp(2rem,4vw,3.25rem);
  line-height:1.05;
  color:#09122b;
}

.auth-panel p{
  margin:0 0 1rem;
  color:#4b5672;
  max-width:58ch;
}

.auth-status,
.auth-hint{
  margin-top:1rem;
  padding:.9rem 1rem;
  border-radius:14px;
  background:#f4f7ff;
  color:#09122b;
  font-size:.95rem;
}

.auth-status-error{
  background:#fff1f1;
  color:#a72b2b;
}

.auth-status-success{
  background:#eefaf0;
  color:#1f6b2f;
}

.auth-form,
.company-picker{
  display:grid;
  gap:1rem;
  margin-top:1.25rem;
}

.auth-form label,
.company-picker label{
  display:grid;
  gap:.45rem;
}

.password-field{
  position:relative;
}

.auth-form span,
.company-picker span{
  font-weight:600;
  color:#09122b;
}

.auth-form small{
  font-weight:400;
  color:#6b7390;
}

.auth-form input,
.company-picker select{
  width:100%;
  border:1px solid rgba(11,18,43,.14);
  border-radius:14px;
  padding:.9rem 1rem;
  font:inherit;
  color:#09122b;
  background:#fff;
}

.password-field .auth-password-input,
.password-field input{
  padding-right:3.1rem;
}

.password-toggle{
  position:absolute;
  right:.72rem;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#09122b;
  font:700 .9rem inherit;
  padding:.25rem .35rem;
  cursor:pointer;
  border-radius:8px;
}

.password-toggle:hover,
.password-toggle:focus-visible{
  color:#dd7430;
  outline:2px solid rgba(221,116,48,.22);
  outline-offset:2px;
}

.auth-form input:focus,
.company-picker select:focus{
  outline:2px solid rgba(247,122,39,.35);
  outline-offset:2px;
  border-color:#f77a27;
}

.auth-form .primary-button,
.company-picker .primary-button{
  justify-self:start;
}

.auth-link-button{
  appearance:none;
  justify-self:start;
  border:0;
  background:transparent;
  color:#09122b;
  font:700 .9rem inherit;
  padding:0;
  cursor:pointer;
  text-decoration:underline;
  text-decoration-color:rgba(9,18,43,.28);
  text-underline-offset:4px;
}

.auth-link-button:hover,
.auth-link-button:focus-visible{
  color:#dd7430;
  text-decoration-color:currentColor;
  outline:none;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap:.85rem;
  margin:.2rem 0;
  color:#59647d;
  font-size:.85rem;
  font-weight:700;
}

.auth-divider:before,
.auth-divider:after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(11,18,43,.13);
}

.auth-create-copy{
  margin:.1rem 0 0;
  color:#09122b;
  font-weight:700;
}

.secondary-button{
  justify-self:start;
  border:1px solid rgba(9,18,43,.18);
  border-radius:11px;
  background:#fff;
  color:#09122b;
  font:800 14px inherit;
  padding:13px 18px;
  cursor:pointer;
}

.secondary-button:hover,
.secondary-button:focus-visible{
  border-color:#dd7430;
  color:#dd7430;
  outline:none;
}

.signout-panel .auth-actions{
  display:flex;
  justify-content:flex-start;
  margin-top:1rem;
}

.otp-panel{
  display:grid;
  gap:1rem;
  margin-top:1.25rem;
}

.otp-panel p{
  margin:0;
}

.otp-panel strong{
  color:#09122b;
}

#otp-code{
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:.42em;
  text-align:center;
}

.upgrade-gate{
  min-height:calc(100vh - 12rem);
  display:grid;
  place-items:center;
  padding:2rem 0 4rem;
}

.upgrade-panel{
  width:min(720px,100%);
  border:1px solid rgba(221,116,48,.35);
  border-radius:24px;
  background:linear-gradient(180deg,#fff7ef,#fff);
  box-shadow:0 20px 55px rgba(9,18,43,.08);
  padding:2rem;
  color:#09122b;
}

.upgrade-panel h1{
  margin:.35rem 0 .75rem;
  color:#09122b;
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.08;
}

.upgrade-panel p{
  max-width:58ch;
  color:#3f4b63;
}

.upgrade-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
  align-items:center;
  margin:1.4rem 0 0;
}

@media (max-width: 720px){
  .auth-panel{
    padding:1.35rem;
    border-radius:20px;
  }

  .auth-form .primary-button,
  .company-picker .primary-button,
  .secondary-button{
    width:100%;
    justify-self:stretch;
  }

  .upgrade-panel{
    padding:1.35rem;
    border-radius:20px;
  }

  .upgrade-actions .primary-button,
  .upgrade-actions .back-button{
    width:100%;
    text-align:center;
  }
}
