/* Account access (sign in, register, password recovery). Split screen: photographic panel + focused form. Solid colours only. */
body.auth-page {
    --au-blue: #1459ce;
    --au-blue-strong: #0f47ad;
    --au-blue-soft: #edf4ff;
    --au-navy: #0b2344;
    --au-ink: #0d1c2e;
    --au-text: #2c3b4f;
    --au-muted: #5a6a7e;
    --au-line: #dbe3ec;
    --au-field: #f7f9fc;
    --au-serif: 'Libre Baskerville', Georgia, serif;
    margin: 0;
    background: #fff;
    color: var(--au-text);
    font: 15px/1.6 'Manrope', Arial, sans-serif;
}
body.auth-page .auth-main { display: block; max-width: none; min-height: 100vh; margin: 0; padding: 0; background: #fff; }
.auth-page .icon { width: 18px; height: 18px; flex: none; }
.auth-page :is(a, button, input, summary):focus-visible { outline: 3px solid #8fb8ff; outline-offset: 2px; }
.auth-page .auth-shell :is(h1, p, ul, ol, fieldset, legend) { margin: 0; }
.auth-page .auth-shell :is(ul, ol) { list-style: none; padding: 0; }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

/* Photographic panel */
.auth-visual { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; background: var(--au-navy); color: #fff; }
.auth-visual > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.auth-visual-investigator-command > img { object-position: 72% center; }
.auth-visual-military-harbor > img { object-position: 75% center; }
.auth-visual-hero-cinema > img { object-position: center 85%; }
.auth-visual-hero-medical > img { object-position: 60% 30%; }
.auth-visual-shade { position: absolute; inset: 0; z-index: -1; background: #061429; opacity: .62; }
.auth-visual-content { display: flex; flex-direction: column; height: 100%; padding: 40px clamp(32px, 4vw, 64px); }
.auth-visual-brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.auth-visual-brand :is(img, .icon) { width: 36px; height: 36px; object-fit: contain; color: #8fb8ff; }
.auth-visual-copy { display: grid; gap: 16px; max-width: 520px; margin: auto 0; }
.auth-visual-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: #c9dcff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.auth-visual-eyebrow::before { content: ''; width: 28px; height: 2px; background: #5b95ff; }
.auth-page .auth-visual-title { color: #fff; font: 400 clamp(32px, 3.2vw, 48px)/1.15 var(--au-serif); letter-spacing: -.01em; text-wrap: balance; }
.auth-visual-copy > p:not(.auth-visual-title) { color: #ffffffd6; font-size: 16.5px; }
.auth-visual-copy ul { display: grid; gap: 12px; margin-top: 10px; }
.auth-visual-copy li { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 15px; font-weight: 600; }
.auth-visual-copy li .icon { box-sizing: content-box; padding: 9px; border-radius: 10px; background: #ffffff1f; color: #c9dcff; }
.auth-visual-foot { color: #ffffff99; font-size: 12.5px; }

/* Form panel */
.auth-panel { display: flex; flex-direction: column; min-height: 100vh; padding: 28px clamp(24px, 5vw, 72px) 24px; background: #fff; }
.auth-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-brand { display: none; align-items: center; gap: 10px; color: var(--au-ink); font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.auth-brand :is(img, .icon) { width: 32px; height: 32px; object-fit: contain; color: var(--au-blue); }
.auth-back { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--au-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.auth-back:hover { color: var(--au-blue); }
.auth-back-icon { transform: rotate(180deg); }
.auth-form { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.auth-shell.is-wide .auth-form, .auth-register .auth-form { max-width: 500px; }
.auth-panel-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; color: #8391a3; font-size: 13px; }
.auth-panel-foot span { margin-right: auto; }
.auth-panel-foot a { color: #6b7a8d; text-decoration: none; }
.auth-panel-foot a:hover { color: var(--au-blue); }

/* Heading */
.auth-heading { display: grid; gap: 8px; margin-bottom: 28px; }
.auth-page .auth-heading h1 { color: var(--au-ink); font: 700 clamp(28px, 2.6vw, 34px)/1.15 'Manrope', sans-serif; letter-spacing: -.03em; }
.auth-heading p { color: var(--au-muted); font-size: 15.5px; }
.auth-step { color: var(--au-blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 14px; background: var(--au-blue-soft); color: var(--au-blue); }
.auth-icon .icon { width: 24px; height: 24px; }

/* Messages */
body.auth-page .auth-form > .notice { margin: 0 0 20px; padding: 13px 16px; border: 1px solid #c4d7f5; border-radius: 10px; background: var(--au-blue-soft); color: #1d3f75; font-size: 14px; font-weight: 600; }
body.auth-page .auth-form .notice.error { border-color: #f0c2bd; background: #fdf0ee; color: #8d2f27; }

/* Fields */
.auth-fields { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 7px; margin: 0; }
.auth-field > span, .auth-field > label, .auth-label-row label { color: var(--au-ink); font-size: 14px; font-weight: 700; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row a { color: var(--au-blue); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.auth-label-row a:hover { text-decoration: underline; }
body.auth-page .auth-field input { width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 1px solid var(--au-line); border-radius: 10px; background: var(--au-field); color: var(--au-ink); font: 500 15.5px 'Manrope', sans-serif; box-shadow: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
body.auth-page .auth-field input::placeholder { color: #9aa7b6; }
body.auth-page .auth-field input:hover { border-color: #c3cfdd; }
body.auth-page .auth-field input:focus { border-color: var(--au-blue); background: #fff; outline: 0; box-shadow: 0 0 0 4px #d6e5ff; }
.auth-password { position: relative; }
body.auth-page .auth-password input { padding-right: 76px; }
body.auth-page .auth-toggle { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; height: 40px; min-height: 0; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--au-blue); font: 700 13.5px 'Manrope', sans-serif; cursor: pointer; box-shadow: none; }
body.auth-page .auth-toggle:hover { background: var(--au-blue-soft); color: var(--au-blue); }
.auth-help, .auth-page .password-quality { color: var(--au-muted); font-size: 13px; }
.auth-page .password-quality:not(:empty) { color: var(--au-blue); font-weight: 600; }
.auth-group { display: grid; gap: 16px; padding: 0; border: 0; }
.auth-group + .auth-group { padding-top: 22px; border-top: 1px solid var(--au-line); }
.auth-group legend { margin-bottom: 4px; padding: 0; color: var(--au-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-check { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: var(--au-text); font-size: 14px; line-height: 1.5; cursor: pointer; }
body.auth-page .auth-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--au-blue); }
.auth-check a { color: var(--au-blue); font-weight: 700; }

/* Actions */
body.auth-page .auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 4px; padding: 0 20px; border: 1px solid var(--au-blue); border-radius: 10px; background: var(--au-blue); color: #fff; font: 700 16px 'Manrope', sans-serif; text-decoration: none; cursor: pointer; box-shadow: none; transition: background-color .2s; }
body.auth-page .auth-submit:hover { background: var(--au-blue-strong); border-color: var(--au-blue-strong); color: #fff; }
body.auth-page .auth-submit .icon { transition: transform .2s; }
body.auth-page .auth-submit:hover .icon { transform: translateX(3px); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; color: var(--au-muted); font-size: 13.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--au-line); }
.auth-secondary { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid #c8d5e5; border-radius: 10px; color: var(--au-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.auth-secondary:hover { border-color: var(--au-blue); background: var(--au-blue-soft); color: var(--au-blue); }
.auth-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px !important; color: var(--au-muted); font-size: 13.5px; }
.auth-note .icon { width: 16px; height: 16px; margin-top: 3px; color: #8391a3; }
.auth-note a, .auth-switch a { color: var(--au-blue); font-weight: 700; }
.auth-switch { margin-top: 24px !important; color: var(--au-muted); font-size: 14.5px; text-align: center; }
.auth-return { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--au-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.auth-return:hover { color: var(--au-blue); }
.auth-return.is-bottom { margin: 22px 0 0; }
.auth-steps { display: grid; gap: 12px; margin-top: 28px !important; padding: 18px 20px !important; border-radius: 12px; background: var(--au-field); }
.auth-steps li { display: flex; align-items: center; gap: 12px; color: var(--au-text); font-size: 14px; }
.auth-steps li span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--au-line); color: var(--au-blue); font-size: 12.5px; font-weight: 700; }

/* Account type chooser */
.auth-types { display: grid; gap: 12px; }
.auth-type { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--au-line); border-radius: 14px; background: #fff; color: var(--au-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.auth-type:hover { border-color: var(--au-blue); box-shadow: 0 12px 28px #0b234414; transform: translateY(-1px); }
.auth-type-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--au-blue); color: #fff; }
.auth-type-icon .icon { width: 24px; height: 24px; }
.auth-type-celebrity .auth-type-icon { background: #175f45; }
.auth-type-military .auth-type-icon { background: #29465e; }
.auth-type-medical .auth-type-icon { background: #147184; }
.auth-type-copy { display: grid; gap: 2px; }
.auth-type-copy strong { font-size: 16.5px; }
.auth-type-copy small { color: var(--au-muted); font-size: 13.5px; line-height: 1.45; }
.auth-type-go { color: #8a99ab; transition: transform .2s, color .2s; }
.auth-type:hover .auth-type-go { color: var(--au-blue); transform: translateX(3px); }
.auth-selected { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--au-field); border: 1px solid var(--au-line); }
.auth-selected .auth-type-icon { width: 48px; height: 48px; }
.auth-selected > span:nth-child(2) { display: grid; }
.auth-selected small { color: var(--au-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auth-selected strong { color: var(--au-ink); font-size: 16px; }
.auth-selected em { color: var(--au-muted); font-size: 13px; font-style: normal; }
.auth-selected a { color: var(--au-blue); font-size: 14px; font-weight: 700; text-decoration: none; }

/* Tablet and phone: the form leads; the photo is decorative and is omitted. */
@media (max-width: 1023px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-brand { display: inline-flex; }
    .auth-panel { padding: 20px 24px 22px; }
    .auth-form { max-width: 480px; padding: 32px 0 36px; }
}
@media (max-width: 520px) {
    .auth-panel { padding: 16px 20px 20px; }
    .auth-back { font-size: 0; gap: 0; width: 40px; height: 40px; justify-content: center; border: 1px solid var(--au-line); border-radius: 50%; }
    .auth-back .icon { width: 18px; height: 18px; }
    .auth-form { padding: 24px 0 28px; }
    .auth-heading { margin-bottom: 22px; }
    .auth-page .auth-heading h1 { font-size: 27px; }
    .auth-row { grid-template-columns: 1fr; gap: 18px; }
    .auth-type { grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 14px; padding: 14px; }
    .auth-type-icon { width: 44px; height: 44px; }
    .auth-selected { grid-template-columns: 42px minmax(0, 1fr); }
    .auth-selected .auth-type-icon { width: 42px; height: 42px; }
    .auth-selected a { grid-column: 2; }
    .auth-panel-foot { justify-content: flex-start; gap: 6px 16px; }
    .auth-panel-foot span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .auth-page * { transition: none !important; } }

/* Neutralise older consumer form rules inside the auth shell. */
body.auth-page .auth-shell label, body.auth-page .auth-shell .auth-field > label { display: block; margin: 0; padding: 0; }
body.auth-page .auth-shell label.auth-field { display: grid; }
body.auth-page .auth-shell label.auth-check { display: flex; }
body.auth-page .auth-toggle { top: 50%; margin: 0; transform: translateY(-50%); }
.auth-group legend { float: left; width: 100%; margin-bottom: 0; }
.auth-group legend + * { clear: both; }
body.auth-page .auth-check input { appearance: auto; padding: 0; border: 0; box-shadow: none; }
body.auth-page .auth-field > *, body.auth-page .auth-password > input { margin: 0 !important; }
body.auth-page .auth-switch { padding: 0; border: 0; }
body.auth-page .auth-fields + .auth-switch { margin-top: 22px !important; }

/* Security question (includes/math-captcha.php) */
.math-captcha-row { display: flex; align-items: center; gap: 12px; }
.math-captcha-question { flex: none; min-width: 92px; padding: 10px 14px; border-radius: 8px; background: #f1f4f8; color: #14263d; font: 800 18px/1.2 'Manrope', sans-serif; letter-spacing: .02em; text-align: center; user-select: none; }
.math-captcha-row input { flex: 1; min-width: 0; }

/* Identity verification (kyc.php) */
.kyc-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.auth-page .auth-fields label.kyc-type { display: block; margin: 0; cursor: pointer; }
.kyc-type input { position: absolute; opacity: 0; pointer-events: none; }
.kyc-type span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--au-line); border-radius: 10px; background: var(--au-field); color: var(--au-ink); font-size: 14px; font-weight: 700; }
.kyc-type span .icon { width: 18px; height: 18px; color: var(--au-blue); flex: none; }
.kyc-type input:checked + span { border-color: var(--au-blue); background: #eef4ff; box-shadow: 0 0 0 3px #d6e5ff; }
.kyc-type input:focus-visible + span { outline: 3px solid #7fb0f5; outline-offset: 2px; }
body.auth-page .auth-fields label.kyc-upload { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border: 1.5px dashed #c3cfdd; border-radius: 12px; background: var(--au-field); cursor: pointer; }
.kyc-upload:hover, .kyc-upload:focus-within { border-color: var(--au-blue); background: #f5f9ff; }
.kyc-upload.is-filled { border-style: solid; border-color: #1e8a5a; background: #f1faf5; }
.kyc-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.kyc-upload-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--au-blue); border: 1px solid var(--au-line); }
.kyc-upload-icon .icon { width: 20px; height: 20px; }
.kyc-upload > span:last-child { display: grid; min-width: 0; }
.kyc-upload strong { color: var(--au-ink); font-size: 14.5px; }
.kyc-upload strong em { color: var(--au-muted); font-style: normal; font-weight: 500; font-size: 13px; }
.kyc-upload small { overflow: hidden; color: var(--au-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.kyc-status { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #f0dcae; border-radius: 12px; background: #fcf6e7; }
.kyc-status-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #87570a; }
.kyc-status div { display: grid; }
.kyc-status strong { color: #5f3e05; font-size: 16px; }
.kyc-status small { color: #7a5a1c; font-size: 13px; }
.kyc-signout { margin-top: 18px; text-align: center; }
.kyc-signout .auth-link-button { border: 0; background: none; color: var(--au-muted); font: 600 14px 'Manrope', sans-serif; text-decoration: underline; cursor: pointer; }
@media (max-width: 420px) { .kyc-types { grid-template-columns: minmax(0, 1fr); } }
