/* =========================================================
   AUTH PAGES — login / register / forgot password (layouts/auth.blade.php)
   Split-screen "Clean Indigo" design, rendered between the normal website
   navbar and footer. Everything is scoped under `.auth` so the site chrome
   (navbar search, footer newsletter) keeps its own look.
   ========================================================= */
.page-auth .bal-footer { margin-top: 0 !important; }

.auth {
    --au-primary: #4F46E5; --au-primary-dark: #4338CA; --au-primary-soft: #EEF2FF;
    --au-ink: #14132B; --au-text: #46455E; --au-muted: #5B5A73; --au-bg: #F7F7FB;
    --au-border: #E4E3F1; --au-dark: #1E1B4B; --au-danger: #B91C1C; --au-success: #166534;
    --au-gold-bg: #FEF3C7;
    --au-nav: 73px; /* height of the sticky site navbar */
    --au-font: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --au-font-bn: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
    --bs-link-color: var(--au-primary-dark); --bs-link-color-rgb: 67, 56, 202; --bs-link-hover-color: #312E81;
    --bs-form-invalid-color: var(--au-danger); --bs-form-invalid-border-color: #DC2626;

    font-family: var(--au-font);
    color: var(--au-ink);
    -webkit-font-smoothing: antialiased;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - var(--au-nav));
}
.auth a { text-decoration: none; }
.auth .bn { font-family: var(--au-font-bn); }

/* ---------- LEFT: academy panel ---------- */
.auth-aside {
    background-color: var(--au-dark);
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    color: #fff;
}
.auth-aside-inner { display: flex; flex-direction: column; gap: 22px; padding: 24px 20px 56px; }
.aside-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aside-body { display: flex; flex-direction: column; gap: 18px; }
.auth .eyebrow { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #C7D2FE; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: 999px; }
.aside-title { font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.02em; color: #fff; }
.aside-title .hl { color: #A5B4FC; }
.aside-lead { font-family: var(--au-font-bn); font-size: 17px; line-height: 1.6; color: #DCDDF5; margin: 0; max-width: 480px; }
.mobile-back { display: none; align-items: center; gap: 6px; color: #C7D2FE; font-weight: 600; font-size: 14px; min-height: 44px; }
.mobile-back:hover { color: #fff; }

/* showcase collage */
.showcase { position: relative; height: 300px; max-width: 520px; width: 100%; }
.sc-card { position: absolute; left: 8%; right: 10%; top: 20px; background: #fff; color: var(--au-ink); border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px; }
.sc-cover { position: relative; overflow: hidden; height: 128px; border-radius: 16px; background: #E9E7FF; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.sc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-cover > :not(img) { position: relative; }
.sc-cover .t { font-family: var(--au-font-bn); font-size: 22px; font-weight: 700; line-height: 1.15; color: #2E2A8C; }
.auth .badge-premium { align-self: flex-start; background: var(--au-ink); color: #FDE68A; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.auth .badge-free { align-self: flex-start; background: #fff; color: var(--au-success); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.sc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; }
.sc-row b { font-size: 14px; display: block; }
.sc-row small { font-size: 12px; color: var(--au-muted); }
.sc-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.sc-float { position: absolute; background: #fff; color: var(--au-ink); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); padding: 12px 14px; }
.sc-progress { left: 0; bottom: 0; width: 58%; max-width: 240px; }
.sc-progress .bar { height: 7px; border-radius: 99px; background: #EEEEF6; margin: 8px 0 6px; }
.sc-progress .bar span { display: block; height: 7px; border-radius: 99px; background: var(--au-primary); }
.sc-cert { right: 0; top: 0; display: flex; align-items: center; gap: 10px; }
.sc-cert .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--au-gold-bg); color: #B45309; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.sc-tools { right: 2%; bottom: 34px; display: flex; gap: 6px; padding: 8px; }
.sc-tools span { font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 8px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.features li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #E0E1F7; line-height: 1.4; }
.features .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(165, 180, 252, .18); color: #C7D2FE; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.features b { color: #fff; font-size: 14px; }

/* forgot page: steps card + safe note */
.steps-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 22px; max-width: 480px; display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: rgba(165, 180, 252, .25); }
.step .num { width: 36px; height: 36px; border-radius: 999px; background: #fff; color: var(--au-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 800; font-size: 14px; }
.step b { display: block; font-size: 15px; color: #fff; }
.step span { font-size: 13px; color: #C7D2FE; }
.safe-note { display: flex; gap: 12px; align-items: center; background: #fff; color: var(--au-ink); border-radius: 16px; padding: 12px 14px; max-width: 480px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.safe-note .ic { width: 36px; height: 36px; border-radius: 10px; background: #DCFCE7; color: var(--au-success); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }

.auth .stats { display: flex; gap: 28px; flex-wrap: wrap; }
.auth .stats .n { font-size: 24px; font-weight: 800; line-height: 1.1; }
.auth .stats .l { font-size: 12px; color: #C7D2FE; }

/* ---------- RIGHT: form ---------- */
.auth-main { display: flex; flex-direction: column; min-width: 0; background: var(--au-bg); }
.auth-topbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 40px 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--au-text); font-weight: 600; font-size: 14px; min-height: 44px; }
.back-link:hover { color: var(--au-ink); }
.auth-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 32px 56px; }
.auth-card { width: 100%; max-width: 480px; background: #fff; border: 1px solid #ECECF3; border-radius: 28px; padding: 40px; box-shadow: 0 24px 60px rgba(20, 19, 43, .08); }
.auth-head { margin-bottom: 28px; }
.head-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--au-primary-soft); color: var(--au-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.head-icon.ok { background: #DCFCE7; color: var(--au-success); }
.auth-head h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; color: var(--au-ink); }
.auth-head p { font-size: 15px; color: var(--au-muted); margin: 0; line-height: 1.6; }

.auth .form-label { font-size: 14px; font-weight: 600; color: var(--au-ink); margin-bottom: 6px; }
.auth .form-control { height: 52px; border-radius: 14px; border: 1.5px solid var(--au-border); background-color: #FBFBFD; font-size: 15px; padding: 0 16px; color: var(--au-ink); box-shadow: none; }
.auth .form-control::placeholder { color: #8B8AA3; }
.auth .form-control:focus { border-color: var(--au-primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.auth .input-icon { position: relative; }
.auth .input-icon > .lead-ic { position: absolute; left: 16px; top: 26px; transform: translateY(-50%); color: #8B8AA3; font-size: 17px; pointer-events: none; z-index: 2; }
.auth .input-icon .form-control { padding-left: 46px; }
.auth .input-icon .form-control.has-toggle { padding-right: 52px; }
.auth .pw-toggle { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; color: var(--au-muted); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.auth .pw-toggle:hover { background: #F0F0F6; color: var(--au-ink); }
.auth .phone-group { display: flex; gap: 8px; }
.auth .phone-prefix { height: 52px; border-radius: 14px; border: 1.5px solid var(--au-border); background: #F1F1F6; display: inline-flex; align-items: center; padding: 0 12px; font-weight: 600; font-size: 15px; color: var(--au-text); flex: none; }
.auth .form-text { font-size: 13px; color: var(--au-muted); margin-top: 6px; }
.auth .invalid-feedback { font-size: 13px; }
.auth .was-validated .form-control:invalid,
.auth .was-validated .form-control:valid,
.auth .form-control.is-invalid { background-image: none; }
.auth .was-validated .form-control:valid:not(.is-invalid) { border-color: var(--au-border); }
.auth .was-validated .form-control:valid:not(.is-invalid):focus { border-color: var(--au-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.auth .was-validated .input-icon .form-control.has-toggle,
.auth .input-icon .form-control.has-toggle.is-invalid { padding-right: 52px; }
.auth .strength { display: flex; gap: 6px; margin-top: 8px; }
.auth .strength span { flex: 1; height: 5px; border-radius: 99px; background: #E6E5F0; transition: background .2s; }
.auth .strength-label { font-size: 12px; color: var(--au-muted); margin-top: 4px; }
.auth .form-check-input { width: 20px; height: 20px; border: 1.5px solid #C9C8DA; margin-top: 1px; }
.auth .form-check-input:checked { background-color: var(--au-primary); border-color: var(--au-primary); }
.auth .form-check-input:focus { box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); border-color: var(--au-primary); }
.auth .was-validated .form-check-input:valid { border-color: #C9C8DA; }
.auth .was-validated .form-check-input:valid:checked { background-color: var(--au-primary); border-color: var(--au-primary); }
.auth .was-validated .form-check-input:valid ~ .form-check-label { color: var(--au-text); }
.auth .form-check-label { font-size: 14px; color: var(--au-text); padding-left: 4px; }

.auth .btn-bal { height: 52px; border-radius: 14px; background: var(--au-primary); color: #fff; font-weight: 700; font-size: 16px; border: 0; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 24px rgba(79, 70, 229, .25); }
.auth .btn-bal:hover, .auth .btn-bal:focus { background: var(--au-primary-dark); color: #fff; }
.auth .btn-bal:disabled { background: #A5A1F0; color: #fff; box-shadow: none; }
.auth .btn-outline-bal { height: 52px; border-radius: 14px; border: 1.5px solid var(--au-border); background: #fff; color: var(--au-ink); font-weight: 700; font-size: 15px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.auth .btn-outline-bal:hover { border-color: var(--au-primary); color: var(--au-primary); }
.auth .btn-link-bal { border: 0; background: transparent; font-weight: 700; color: var(--au-primary-dark); font-size: 14px; padding: 0; min-height: 44px; }
.auth .btn-link-bal:disabled { color: var(--au-muted); }
.auth .alt-line { text-align: center; font-size: 14px; color: var(--au-muted); }
.auth .alt-line a { font-weight: 700; }
.auth .link-strong { font-size: 14px; font-weight: 600; }
.auth .divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--au-muted); }
.auth .divider::before, .auth .divider::after { content: ""; flex: 1; height: 1px; background: var(--au-border); }
.auth .alert-bal { border-radius: 14px; font-size: 14px; border: 0; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.auth .alert-bal.err { background: #FEF2F2; color: var(--au-danger); }
.auth .alert-bal.err a { color: var(--au-danger); font-weight: 700; text-decoration: underline; }
.auth .alert-bal.ok { background: #F0FDF4; color: var(--au-success); }
.auth .trust-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--au-muted); }
.auth .trust-row i { color: var(--au-primary); }
.auth .email-pill { display: inline-block; background: #F3F3F8; border: 1px solid var(--au-border); border-radius: 10px; padding: 4px 10px; font-weight: 700; color: var(--au-ink); word-break: break-all; }
.auth .tip { background: #F7F7FB; border: 1px solid #ECECF3; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--au-muted); display: flex; gap: 10px; }

/* forgot page: mobile-only "How it works" (under the form) */
.how-mobile { display: none; }
.how-title { font-size: 14px; font-weight: 700; color: var(--au-text); margin-bottom: 14px; }
.how-step { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--au-ink); }
.how-step + .how-step { margin-top: 12px; }
.how-step .num { width: 30px; height: 30px; border-radius: 999px; background: var(--au-primary); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Phone (< 768px): app style ---------- */
@media (max-width: 767.98px) {
    .auth { min-height: 0; }
    .auth-aside-inner { padding: 22px 20px 52px; gap: 16px; }
    .showcase, .features, .aside-lead, .steps-card, .safe-note { display: none !important; }
    .aside-title { font-size: 28px; }
    .mobile-back { display: inline-flex; }
    .auth .stats { gap: 8px; }
    .auth .stats > div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 12px; }
    .auth .stats .n { font-size: 16px; }
    .auth .stats .l { font-size: 11px; }
    .page-auth .auth-aside:has(.steps-card) .stats { display: none; } /* forgot page: design shows no stats */
    .auth-main { margin-top: -28px; border-radius: 28px 28px 0 0; position: relative; background: #fff; }
    .auth-topbar { display: none; }
    .auth-center { align-items: stretch; justify-content: flex-start; padding: 28px 20px 36px; gap: 24px; }
    .auth-card { border: 0; box-shadow: none; padding: 0; border-radius: 0; max-width: none; }
    .auth-head h1 { font-size: 24px; }
    .auth-head { margin-bottom: 22px; }
    .how-mobile { display: block; background: #F7F7FB; border: 1px solid #ECECF3; border-radius: 18px; padding: 18px 16px; }
}

/* ---------- Tablet & desktop (>= 768px): split screen ---------- */
@media (min-width: 768px) {
    .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .auth-aside-inner {
        position: sticky; top: var(--au-nav);
        min-height: calc(100vh - var(--au-nav));
        padding: 36px 40px; gap: 28px; justify-content: space-between;
    }
    .aside-body { gap: 22px; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
    .features { grid-template-columns: minmax(0, 1fr); }
    .features li { flex-direction: row; align-items: center; padding: 10px 12px; }
    .auth-topbar { padding: 20px 24px 0; }
    .auth-center { padding: 28px 20px 40px; }
    .auth-card { padding: 28px; }
}
@media (min-width: 1200px) {
    .auth { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
    .auth-aside-inner { padding: 40px 64px; }
}
@media (min-width: 768px) and (max-height: 820px) {
    .showcase { display: none; }
}
