/* Moved from application/views/includes/auth_head.php */
:root {
    --auth-navy: #0f3d5c;
    --auth-navy-2: #1c5b80;
    --auth-accent: #2f7aa6;
    --auth-amber: #c3dbe8;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-line: #e5e7eb;
    --auth-bg: #f4f6fb;
}
html, body { height: 100%; }
body.auth-body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--auth-bg); color: var(--auth-text); }
.auth-shell { min-height: 100vh; display: flex; }

/* ---------- brand panel ---------- */
.auth-brand { position: relative; flex: 1 1 55%; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
    padding: 48px 56px; background: radial-gradient(1200px 600px at -10% 110%, rgba(127,182,212,.30), transparent 60%),
                linear-gradient(145deg, var(--auth-navy) 0%, var(--auth-navy-2) 100%); }
.auth-brand::before { content: ''; position: absolute; inset: 0; opacity: .08;
    background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
    background-size: 44px 44px; }
.auth-brand > * { position: relative; }
.auth-brand-top { display: flex; align-items: center; gap: 12px; }
.auth-logo-chip { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-flex; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.auth-logo-chip img { height: 34px; width: auto; display: block; }
.auth-brand-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.auth-headline { font-size: 38px; line-height: 1.15; font-weight: 800; margin: 0 0 14px; max-width: 520px; color: #fff; }
.auth-brand h1, .auth-brand b { color: #fff; }
.auth-headline span { color: #fbbf24; background: linear-gradient(90deg, #fbbf24, #fb923c 45%, #f472b6); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; }
.auth-headline em { font-style: normal; color: #5eead4; }
.auth-lead b { color: #fff; font-weight: 700; }
.auth-lead .hl { color: #7dd3fc; font-weight: 600; }
.auth-lead { font-size: 15px; color: rgba(255,255,255,.78); max-width: 480px; margin: 0 0 28px; line-height: 1.6; }
.auth-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 540px; }
.auth-feature { --c: #7fb6d4; display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--c);
    border-radius: 12px; padding: 12px 14px; backdrop-filter: blur(2px); }
.auth-feature i { width: 32px; height: 32px; border-radius: 9px; background: var(--c); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.18); display: flex;
    align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.auth-feature b { display: block; font-size: 13px; font-weight: 700; }
.auth-feature small { display: block; font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.4; }
.auth-illustration { width: 100%; max-width: 520px; margin-top: 28px; }
.auth-brand-foot { font-size: 12px; color: rgba(255,255,255,.55); }

/* ---------- form panel ---------- */
.auth-panel { flex: 1 1 45%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-mobile-logo { display: block; margin-bottom: 26px; }
.auth-mobile-logo img { height: 72px; width: auto; display: block; }
.auth-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: var(--auth-navy); }
.auth-sub { color: var(--auth-muted); font-size: 14px; margin: 0 0 28px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--auth-text); margin-bottom: 6px; display: block; }
.auth-input { position: relative; }
.auth-input > i.fa:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 15px; pointer-events: none; }
.auth-input .form-control { height: 48px; padding-left: 42px; border-radius: 10px; border: 1px solid var(--auth-line); font-size: 14px; background: #fbfcfe; }
.auth-input .form-control:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 4px rgba(47,122,166,.15); background: #fff; }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #9ca3af;
    width: 38px; height: 38px; border-radius: 8px; cursor: pointer; }
.auth-eye:hover { color: var(--auth-navy); background: #f1f5f9; }
.auth-caps { display: none; font-size: 12px; color: #b45309; margin-top: 6px; }
.auth-caps.show { display: block; }
.auth-btn { height: 48px; border-radius: 10px; font-weight: 700; font-size: 15px; width: 100%; border: 0; color: #fff;
    background: linear-gradient(135deg, var(--auth-navy-2), var(--auth-accent)); box-shadow: 0 8px 20px rgba(15,61,92,.25); transition: transform .12s, box-shadow .12s; }
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,61,92,.3); color: #fff; }
.auth-btn:disabled { opacity: .75; transform: none; cursor: progress; }
.auth-btn .fa-spinner { display: none; }
.auth-btn.loading .fa-spinner { display: inline-block; }
.auth-btn.loading .auth-btn-label { opacity: .85; }
.auth-btn-ghost { height: 44px; border-radius: 10px; font-weight: 600; font-size: 14px; width: 100%; border: 1px solid var(--auth-line);
    background: #fff; color: var(--auth-text); display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.auth-btn-ghost:hover { background: #f8fafc; color: var(--auth-navy); }
.auth-btn-ghost:disabled { color: #9ca3af; cursor: not-allowed; background: #f9fafb; }
.auth-note { display: flex; gap: 10px; align-items: center; margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: #eef5f9;
    color: #1c5b80; font-size: 12.5px; }
.auth-note i { color: var(--auth-accent); font-size: 16px; }
.auth-note-error { margin-top: 0; background: #fdecec; color: #9b1c1c; }
.auth-note-error i { color: #c81e1e; }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--auth-muted); }
.auth-switch a { color: var(--auth-navy-2); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-hint { font-size: 12px; color: var(--auth-muted); margin-top: 5px; }
.auth-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--auth-muted); margin: 4px 0 18px; }
.auth-check input { margin-top: 3px; }
.auth-copy { margin-top: 28px; text-align: center; font-size: 12px; color: #9ca3af; }

/* OTP boxes */
.otp-container { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.otp-input { width: 100%; max-width: 54px; height: 58px; text-align: center; font-size: 22px; font-weight: 700; border-radius: 12px;
    border: 1px solid var(--auth-line); background: #fbfcfe; color: var(--auth-navy); outline: none; }
.otp-input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 4px rgba(47,122,166,.15); background: #fff; }

@media (max-width: 991.98px) {
    .auth-brand { display: none; }
    .auth-panel { background: var(--auth-bg); }
    .auth-card { background: #fff; border-radius: 16px; padding: 28px 22px; box-shadow: 0 10px 30px rgba(15,61,92,.08); }
}
