/* ============================================================
   Minutes Services — Auth shell (create account / login, OTP)
   ============================================================ */

.auth-body{
  background:var(--paper);
  min-height:100vh;
}

.auth-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 20px;
  position:relative;
  overflow:hidden;
}
.auth-shell::before{
  content:"";
  position:absolute;
  top:-240px; left:50%;
  transform:translateX(-50%);
  width:760px; height:760px;
  background:radial-gradient(circle, rgba(31,95,173,.14), rgba(31,95,173,0) 68%);
  pointer-events:none;
}

.auth-topbrand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:19px;
  color:var(--ink);
  margin-bottom:34px;
  position:relative;
}
.auth-topbrand-logo{
  width:34px;
  height:34px;
  flex-shrink:0;
}

.auth-card{
  width:100%;
  max-width:760px;
  background:var(--paper-raised);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow-lg);
  padding:40px 38px;
  position:relative;
}

.auth-step{ display:none; }
.auth-step.active{ display:block; }

.auth-head{ margin-bottom:28px; }
.auth-head h1{ font-size:26px; margin-top:12px; }
.auth-head p{ color:var(--slate); font-size:14.5px; margin-top:10px; line-height:1.6; }

.auth-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.auth-field{ display:flex; flex-direction:column; gap:7px; }
.auth-field label{ font-size:13px; font-weight:600; color:var(--ink-soft); }
.auth-field input,
.auth-field select{
  width:100%;
  min-width:0;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:14.5px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus,
.auth-field select:focus{
  outline:none;
  border-color:var(--brass);
  box-shadow:0 0 0 3px rgba(31,95,173,.14);
}
.auth-row2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
/* Organization category + organization type on create-account: the type names are longer. */
.auth-row-types{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);
  gap:14px;
}
.auth-row-types select{ font-size:14px; padding-left:12px; padding-right:8px; }
.auth-field select:disabled{ cursor:not-allowed; opacity:.65; }
/* Honeypot: off-screen, not display:none, so simple bots still fill it in. */
.auth-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.auth-turnstile{ margin-top:18px; }
.auth-hint{ margin:0; font-size:12.5px; color:var(--slate); line-height:1.5; }

.auth-plan-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:8px;
  padding:14px 16px;
  margin-bottom:20px;
}
.auth-plan-summary .k{ font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--slate); }
.auth-plan-summary .v{ font-family:var(--font-display); font-size:17px; color:var(--ink); margin-top:2px; }
.auth-plan-summary a{ font-family:var(--font-mono); font-size:12px; color:var(--brass); }

.auth-submit{ margin-top:6px; }

.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:22px 0;
  color:var(--slate);
  font-family:var(--font-mono);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.auth-divider::before, .auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.auth-terms{
  font-size:12.5px;
  color:var(--slate);
  line-height:1.6;
  margin-top:4px;
}
.auth-terms a{ color:var(--ink-soft); text-decoration:underline; }

.auth-footer-note{
  text-align:center;
  margin-top:24px;
  font-size:14px;
  color:var(--slate);
}
.auth-footer-note a{ color:var(--brass); font-weight:600; }

/* ---------- Step 1: inline registration-status banner ---------- */
.auth-banner{
  padding:14px 16px;
  border-radius:8px;
  border:1px solid transparent;
  font-size:13.5px;
  line-height:1.6;
  margin-bottom:20px;
}
.auth-banner.warning{ background:#FDECD8; color:#B85C1F; border-color:#F5CBA0; }
.auth-banner.error{ background:#FBEAEA; color:#B3382C; border-color:#F3C7C2; }

/* ---------- OTP step ---------- */
.otp-target{
  font-weight:600;
  color:var(--ink);
}
.otp-inputs{
  display:flex;
  gap:10px;
  margin:6px 0 4px;
}
.otp-inputs input{
  width:100%;
  aspect-ratio:1;
  text-align:center;
  font-family:var(--font-mono);
  font-size:22px;
  font-weight:500;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
}
.otp-inputs input:focus{
  outline:none;
  border-color:var(--brass);
  box-shadow:0 0 0 3px rgba(31,95,173,.14);
}

.otp-status{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--slate);
  margin-top:4px;
}
.otp-status.success{ color:#2E6B3E; }

.otp-resend{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:18px;
  font-size:13.5px;
}
.otp-resend button{
  background:none;
  border:none;
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--brass);
  cursor:pointer;
}
.otp-resend button:disabled{ color:var(--slate); cursor:default; }

.auth-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--slate);
  margin-bottom:18px;
}
.auth-back:hover{ color:var(--ink); }

.auth-progress{
  display:flex;
  gap:6px;
  margin-bottom:24px;
}
.auth-progress span{
  height:3px;
  flex:1;
  border-radius:2px;
  background:var(--line);
}
.auth-progress span.done{ background:var(--brass); }

@media (max-width: 640px){
  .auth-row-types{ grid-template-columns:1fr; }
}

@media (max-width: 520px){
  .auth-card{ padding:30px 24px; }
  .auth-row2{ grid-template-columns:1fr; }
  .otp-inputs input{ font-size:18px; }
}
