/* ==========================================================================
   GoodCap Capital — Auth layout (Phase 8; reused by OTP in Phase 13)
   Compact header · split screen (brand panel + card) · minimal footer
   ========================================================================== */

.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }

/* ---------- Compact header ---------- */
.auth-header { position: relative; z-index: 5; border-bottom: 1px solid var(--gc-line); background: #fff; }
.auth-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.auth-header .brand img { height: 38px; }
.auth-header__links { display: flex; align-items: center; gap: 6px; }
.auth-header__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 0.9375rem; font-weight: 700; color: var(--gc-navy); }
.auth-header__links a:hover { background: var(--gc-mist); color: var(--gc-blue); }
.auth-header__links .icon { width: 18px; height: 18px; color: var(--gc-blue); }
@media (max-width: 559px) { .auth-header__links .auth-header__text { display: none; } .auth-header__links a { padding: 0 10px; } }

/* ---------- Split ---------- */
.auth-split { flex: 1; display: grid; }
@media (min-width: 1024px) { .auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Brand panel */
.auth-brand {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  display: none; padding: clamp(40px, 5vw, 72px);
  background: radial-gradient(80% 60% at 100% 0%, rgba(23, 163, 243, 0.45), transparent 60%),
              radial-gradient(70% 60% at 0% 100%, rgba(2, 128, 231, 0.4), transparent 60%),
              linear-gradient(160deg, #041c4a 0%, #063281 55%, #04469f 100%);
}
@media (min-width: 1024px) { .auth-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; } }
.auth-brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.auth-brand__logo { height: 44px; width: auto; align-self: flex-start; }
.auth-brand h2 { color: #fff; font-size: clamp(2rem, 3vw, 2.75rem); max-width: 15ch; letter-spacing: -0.03em; }
.auth-brand__lead { color: rgba(255, 255, 255, 0.8); margin-top: 16px; max-width: 44ch; }
.auth-brand__points { display: grid; gap: 14px; margin-top: 30px; }
.auth-brand__points li { display: flex; gap: 14px; align-items: center; font-weight: 600; color: #fff; }
.auth-brand__points span { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); color: #7fd3ff; }
.auth-brand__points .icon { width: 19px; height: 19px; }

/* Security visual: shield in a leaf, with a masked card behind */
.auth-visual { position: relative; width: min(100%, 380px); aspect-ratio: 1.35; }
@media (min-width: 1024px) and (max-height: 960px) { .auth-visual { width: min(100%, 280px); } .auth-brand { gap: 28px; padding-block: 40px; } .auth-brand__points { margin-top: 22px; gap: 10px; } }
@media (min-width: 1024px) and (max-height: 720px) { .auth-visual { display: none; } }
.auth-visual .mcard { position: absolute; width: 78%; right: 0; top: 4%; transform: rotate(6deg); opacity: .95; }
.auth-visual__shield {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 56px 12px 56px 12px;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.auth-visual__shield .icon { width: 42%; height: 42%; color: #fff; stroke-width: 1.6; }
.auth-visual__mask { display: inline-flex; gap: 6px; margin-top: 4px; }
.auth-visual__mask i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.auth-brand__foot { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Form side ---------- */
.auth-main { display: grid; place-items: center; padding: clamp(28px, 6vw, 72px) var(--gutter); background: var(--gc-mist); }
@media (min-width: 1024px) { .auth-main { background: #fff; } }
.auth-card { width: 100%; max-width: 440px; }
.auth-card__mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 0.875rem; font-weight: 700; color: var(--gc-navy); }
.auth-card__mobile-brand span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gc-tint); color: var(--gc-blue); }
.auth-card__mobile-brand .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) { .auth-card__mobile-brand { display: none; } }
.auth-card__box { padding: clamp(24px, 5vw, 36px); background: #fff; border-radius: 28px; border: 1px solid var(--gc-line); box-shadow: var(--sh-md); }
@media (min-width: 1024px) { .auth-card__box { padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0; } }
.auth-card h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.auth-card__sub { color: var(--gc-muted); margin-top: 6px; }
.auth-form { margin-top: 28px; display: grid; gap: 18px; }
.auth-form .alert { margin-bottom: 2px; }

.auth-secure { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 14px; background: var(--gc-mist); border: 1px solid var(--gc-line); font-size: 0.8125rem; color: var(--gc-muted); line-height: 1.5; }
@media (min-width: 1024px) { .auth-secure { background: #f8fafc; } }
.auth-secure .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--gc-success); }
.auth-secure b { color: var(--gc-ink); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-link { font-size: 0.9rem; font-weight: 700; color: var(--gc-blue); min-height: 44px; display: inline-flex; align-items: center; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-alt { margin-top: 24px; text-align: center; font-size: 0.9375rem; color: var(--gc-muted); }
.auth-alt a { font-weight: 800; color: var(--gc-blue); }
.auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Password field with show/hide */
.pw-wrap { position: relative; }
.pw-wrap .field__control { padding-right: 92px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 0.8125rem; font-weight: 700; color: var(--gc-muted);
}
.pw-toggle:hover { background: var(--gc-mist); color: var(--gc-blue); }
.pw-toggle .icon { width: 18px; height: 18px; }
.pw-toggle .i-hide { display: none; }
.pw-toggle.is-shown .i-show { display: none; }
.pw-toggle.is-shown .i-hide { display: block; }
.caps-hint { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; color: #b45309; }
.caps-hint[hidden] { display: none; }
.caps-hint .icon { width: 16px; height: 16px; }

/* ---------- Minimal footer ---------- */
.auth-footer { border-top: 1px solid var(--gc-line); background: #fff; }
.auth-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; font-size: 0.8125rem; color: var(--gc-muted); }
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.auth-footer a { min-height: 36px; display: inline-flex; align-items: center; }
.auth-footer a:hover { color: var(--gc-blue); }

.js .auth-in { opacity: 0; transform: translateY(14px); animation: auth-in .6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes auth-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .auth-in { opacity: 1; transform: none; animation: none; } }
