/* Organization registration + the OTP step of superadmin sign-in.
   Shares one card treatment so the two screens feel like one flow. */

/* ── Split shell ──────────────────────────────────────────────────────────
   Same two-column idea as the admin/superadmin sign-in screens (a branding
   panel + the form), mirrored here with this page's own visual language
   instead of pulling in Bootstrap/admin-console.css. Below the breakpoint
   the branding panel drops out and the form alone fills the screen — same
   rule the admin/superadmin split uses, for the same reason.
   ========================================================================= */
.au-split { min-height: 100dvh; width: 100%; display: flex; }

.au-split-left {
  display: none;
  position: relative;
  flex: 0 0 44%;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 48px;
  background: var(--grad-primary);
  color: #fff;
}
@media (min-width: 992px) { .au-split-left { display: flex; } }

.au-split-orb { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.au-split-orb-1 { width: 340px; height: 340px; top: -120px; left: -100px; background: rgba(255,255,255,0.16); }
.au-split-orb-2 { width: 300px; height: 300px; bottom: -140px; right: -90px; background: rgba(255,255,255,0.12); }
.au-split-grid {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(560px 420px at 30% 20%, #000 0%, transparent 75%);
}

.au-split-brand { position: relative; display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.au-split-brand svg { width: 30px; height: 30px; }

.au-split-copy { position: relative; margin-top: 10px; }
.au-split-copy h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px; }
.au-split-copy p { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.86); max-width: 380px; margin: 0; }

.au-split-list { position: relative; list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.au-split-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,0.94); font-weight: 600; }
.au-split-list li svg {
  flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
}

.au-split-card {
  position: relative; margin-top: 32px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 16px; padding: 18px 20px;
  backdrop-filter: blur(6px);
}
.au-split-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.au-split-card-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.au-split-card-time { font-size: 11.5px; font-weight: 700; color: #fff; }

.au-split-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.au-split-steps li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 650; color: rgba(255,255,255,0.72); }
.au-split-steps li.done { color: #fff; }
.au-step-ic {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; background: rgba(255,255,255,0.16); color: #fff;
}
.au-split-steps li.done .au-step-ic { background: #fff; color: var(--color-primary-dark); }

.au-split-foot { position: relative; font-size: 12.5px; color: rgba(255,255,255,0.7); }

.au-split-right {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center;
  padding: 28px 18px 44px; overflow-y: auto; position: relative;
  background: #fffafa;
  background-image: radial-gradient(900px 380px at 100% 0%, #ffe3e6 0%, rgba(255, 227, 230, 0) 62%);
}
.au-split-right-inner { width: 100%; max-width: 460px; position: relative; z-index: 1; }

.au-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 22px 56px rgba(60, 20, 40, 0.14), inset 0 0 0 1px rgba(255,255,255,0.7);
  animation: au-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes au-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.au-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--color-text-muted);
  text-decoration: none; margin-bottom: 18px;
}
.au-back:hover { color: var(--color-primary); }
.au-back svg { width: 15px; height: 15px; }

.au-mark { width: 44px; height: 44px; color: var(--color-primary); margin-bottom: 16px; }
.au-mark svg { width: 100%; height: 100%; display: block; }

.au-title { font-size: 25px; font-weight: 800; letter-spacing: -0.028em; margin: 0 0 7px; color: var(--color-text); }
.au-sub { font-size: 14.5px; line-height: 1.55; color: var(--color-text-muted); margin: 0 0 26px; }
.au-sub strong { color: var(--color-text); font-weight: 650; }

.au-field { margin-bottom: 16px; }
.au-label { display: block; font-size: 13px; font-weight: 650; color: var(--color-text); margin-bottom: 6px; }
.au-input {
  width: 100%; font: inherit; font-size: 15.5px;
  padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--color-border-strong);
  background: #fff; color: var(--color-text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.au-input:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.13);
}
.au-input[aria-invalid="true"] { border-color: var(--color-danger); }
.au-input::placeholder { color: var(--color-text-faint); }

.au-pw-wrap { position: relative; }
.au-pw-wrap .au-input { padding-right: 46px; }
.au-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--color-text-faint); display: grid; place-items: center;
}
.au-pw-toggle:hover { color: var(--color-text-muted); }
.au-pw-toggle svg { width: 19px; height: 19px; }

.au-hint { font-size: 12.5px; color: var(--color-text-faint); margin-top: 6px; line-height: 1.5; }
.au-err { font-size: 12.5px; color: var(--color-danger); margin-top: 6px; min-height: 1em; }

/* Password strength meter */
.au-meter { display: flex; gap: 5px; margin-top: 9px; }
.au-meter span {
  height: 4px; flex: 1; border-radius: 3px; background: var(--color-border);
  transition: background 0.24s ease;
}
.au-meter.s1 span:nth-child(1) { background: var(--color-danger); }
.au-meter.s2 span:nth-child(-n+2) { background: var(--c-amber); }
.au-meter.s3 span:nth-child(-n+3) { background: var(--c-teal); }
.au-meter.s4 span { background: var(--color-success-solid); }
.au-meter-label { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; }

.au-submit {
  width: 100%; border: 0; cursor: pointer; font: inherit;
  font-size: 16px; font-weight: 700; color: #fff;
  padding: 15px; border-radius: 12px; margin-top: 8px;
  background: var(--grad-primary);
  box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.au-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 0.4); }
.au-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.au-spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.4px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: au-spin 0.65s linear infinite;
}
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-foot { text-align: center; font-size: 14px; color: var(--color-text-muted); margin-top: 22px; }
.au-foot a { color: var(--color-primary); font-weight: 650; text-decoration: none; }
.au-foot a:hover { text-decoration: underline; }

.au-alert {
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
  margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start;
}
.au-alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.au-alert-error { background: var(--color-danger-bg); color: var(--color-danger-dark); }
.au-alert-ok { background: var(--color-success-bg); color: var(--color-success); }
.au-alert-info { background: var(--color-info-bg); color: var(--color-info); }

/* ── OTP entry ───────────────────────────────────────────────────────── */
.au-otp { display: flex; gap: 9px; justify-content: space-between; margin: 6px 0 4px; }
.au-otp input {
  width: 100%; aspect-ratio: 1 / 1.15; min-width: 0;
  text-align: center; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
  border-radius: 12px; border: 1.5px solid var(--color-border-strong);
  background: #fff; color: var(--color-text); font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.au-otp input:focus {
  outline: none; border-color: var(--color-primary); transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.13);
}
.au-otp input.filled { border-color: var(--color-primary-mid); background: var(--color-primary-pale); }
.au-otp.shake { animation: au-shake 380ms ease; }
@keyframes au-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.au-resend { display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13.5px; color: var(--color-text-muted); margin-top: 18px; }
.au-resend button {
  background: none; border: 0; font: inherit; font-size: 13.5px; font-weight: 650;
  color: var(--color-primary); cursor: pointer; padding: 0;
}
.au-resend button:disabled { color: var(--color-text-faint); cursor: not-allowed; }
.au-resend button:not(:disabled):hover { text-decoration: underline; }

@media (max-width: 420px) {
  .au-card { padding: 26px 20px; }
  .au-otp { gap: 6px; }
  .au-otp input { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .au-card, .au-otp.shake, .au-spinner { animation: none; }
  .au-submit:hover:not(:disabled), .au-otp input:focus { transform: none; }
}
