  *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --navy: #0a2342;
            --navy-mid: #133155;
            --accent: #3498db;
            --accent-lt: #5dade2;
            --white: #ffffff;
            --off-white: #f6f8fb;
            --border: rgba(10, 35, 66, 0.12);
            --text-main: #1a2636;
            --text-muted: #6b7c93;
            --text-hint: #9eafc2;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --shadow-card: 0 4px 32px rgba(10, 35, 66, 0.10);
            --shadow-btn: 0 2px 12px rgba(52, 152, 219, 0.30);
            --transition: 0.2s ease;
        }

        html,
        body {
            height: 100%;
            font-family: 'DM Sans', sans-serif;
            background: var(--off-white);
            color: var(--text-main);
        }

        /* ── Page layout ── */
        .page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px 16px;
            background: var(--off-white);
            background-image:
                radial-gradient(ellipse 60% 50% at 15% 20%, rgba(52, 152, 219, 0.07) 0%, transparent 70%),
                radial-gradient(ellipse 50% 60% at 85% 80%, rgba(10, 35, 66, 0.05) 0%, transparent 70%);
        }

        /* ── Card ── */
        .card {
            width: 100%;
            max-width: 920px;
            display: flex;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            background: var(--white);
        }

        /* ── LEFT PANEL ── */
        .panel-left {
            flex: 0 0 44%;
            position: relative;
            overflow: hidden;
            min-height: 520px;
        }

        .panel-left img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }

        /* Overlay gradient on top of image */
        .panel-left::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(160deg,
                    rgba(10, 35, 66, 0.55) 0%,
                    rgba(10, 35, 66, 0.20) 50%,
                    rgba(10, 35, 66, 0.60) 100%);
        }

        /* Logo overlay on image */
        .img-overlay {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 36px 36px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-center {
            display: flex;
            justify-content: center;
            margin-bottom: 32px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            font-size: 16px;
            color: var(--white);
            letter-spacing: -1px;
            flex-shrink: 0;
        }

        .logo-dark .logo-icon {
            background: var(--navy);
            color: var(--white);
            border: none;
        }

        .logo-text .brand-name {
            font-family: 'Playfair Display', serif;
            font-size: 19px;
            font-weight: 600;
            color: var(--white);
            letter-spacing: 0.3px;
            line-height: 1.2;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        }

        .logo-dark .brand-name {
            color: var(--navy);
            text-shadow: none;
        }

        .logo-text .brand-sub {
            font-size: 11px;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.6);
            letter-spacing: 1.4px;
            text-transform: uppercase;
        }

        .logo-dark .brand-sub {
            color: var(--text-muted);
        }

        /* Bottom caption on image */
        .img-caption {
            background: rgba(255, 255, 255, 0.10);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: var(--radius-md);
            padding: 18px 20px;
        }

        .img-caption p {
            font-family: 'Playfair Display', serif;
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            line-height: 1.4;
            margin-bottom: 8px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .img-caption p em {
            font-style: normal;
            color: var(--accent-lt);
        }

        .img-caption span {
            font-size: 12px;
            font-weight: 300;
            color: rgba(255, 255, 255, 0.65);
        }

        /* ── RIGHT PANEL ── */
        .panel-right {
            flex: 1;
            padding: 52px 52px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Tabs */
        .tabs {
            display: flex;
            gap: 0;
            background: var(--off-white);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 4px;
            width: fit-content;
            margin-bottom: 36px;
        }

        .tab-btn {
            padding: 9px 30px;
            font-size: 13px;
            font-weight: 500;
            font-family: 'DM Sans', sans-serif;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: 7px;
            transition: all var(--transition);
            white-space: nowrap;
        }

        .tab-btn.active {
            background: var(--navy);
            color: var(--white);
        }

        .form-footer {
            margin-top: 24px;
            text-align: center;
            font-size: 14px;
            color: var(--text-muted);
        }

        .form-footer a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
        }

        .form-footer a:hover {
            text-decoration: underline;
        }

        /* Form panels */
        .form-panel {
            display: none;
        }

        .form-panel.active {
            display: block;
        }

        .form-title {
            font-family: 'Playfair Display', serif;
            font-size: 28px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 6px;
        }

        .form-sub {
            font-size: 14px;
            font-weight: 300;
            color: var(--text-muted);
            margin-bottom: 30px;
        }

        /* Badge */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(52, 152, 219, 0.10);
            border: 1px solid rgba(52, 152, 219, 0.25);
            border-radius: 20px;
            padding: 5px 14px;
            font-size: 12px;
            font-weight: 500;
            color: var(--accent);
            margin-bottom: 20px;
            letter-spacing: 0.3px;
        }

        .badge .ti {
            font-size: 13px;
        }

        /* Fields */
        .field {
            margin-bottom: 16px;
        }

        .field-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .field label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-muted);
            letter-spacing: 0.6px;
            text-transform: uppercase;
            margin-bottom: 7px;
        }

        .input-wrap {
            position: relative;
        }

        .input-wrap > .ti {
            position: absolute;
            left: 13px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: var(--text-hint);
            pointer-events: none;
            transition: color var(--transition);
        }

        .input-wrap input {
            width: 100%;
            height: 44px;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 0 14px 0 40px;
            font-size: 15px;
            font-weight: 400;
            font-family: 'DM Sans', sans-serif;
            color: var(--text-main);
            background: var(--off-white);
            outline: none;
            transition: border-color var(--transition), background var(--transition);
            -webkit-appearance: none;
        }

        .input-wrap input::placeholder {
            color: var(--text-hint);
        }

        .input-wrap input:focus {
            border-color: var(--accent);
            background: var(--white);
        }

        .input-wrap input:focus + .ti,
        .input-wrap:focus-within > .ti {
            color: var(--accent);
        }

        /* Eye toggle */
        .eye-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: var(--text-hint);
            font-size: 16px;
            display: flex;
            align-items: center;
            transition: color var(--transition);
        }

        .eye-toggle:hover {
            color: var(--text-muted);
        }

        /* Password strength */
        .strength-bar {
            height: 3px;
            border-radius: 2px;
            background: var(--border);
            margin-top: 8px;
            overflow: hidden;
        }

        .strength-fill {
            height: 100%;
            border-radius: 2px;
            width: 0%;
            transition: width 0.3s ease, background 0.3s ease;
        }

        .strength-label {
            font-size: 11px;
            color: var(--text-hint);
            margin-top: 4px;
        }

        /* Forgot */
        .forgot-link {
            font-size: 13px;
            color: var(--accent);
            text-decoration: none;
            display: block;
            text-align: right;
            margin-top: 8px;
            transition: opacity var(--transition);
        }

        .forgot-link:hover {
            opacity: 0.75;
        }

        /* Score selector */
        .score-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-top: 6px;
        }

        .score-btn {
            padding: 9px 4px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: transparent;
            font-size: 13px;
            font-weight: 500;
            font-family: 'DM Sans', sans-serif;
            color: var(--text-muted);
            cursor: pointer;
            text-align: center;
            transition: all var(--transition);
        }

        .score-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .score-btn.selected {
            background: var(--navy);
            border-color: var(--navy);
            color: var(--white);
        }

        /* Checkbox */
        .checkbox-field {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 4px;
        }

        .checkbox-field input[type="checkbox"] {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            margin-top: 2px;
            accent-color: var(--navy);
            cursor: pointer;
        }

        .checkbox-field label {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-muted);
            text-transform: none;
            letter-spacing: 0;
            cursor: pointer;
        }

        .checkbox-field label a {
            color: var(--accent);
            text-decoration: none;
        }

        .checkbox-field label a:hover {
            text-decoration: underline;
        }

        /* Submit */
        .submit-btn {
            width: 100%;
            height: 46px;
            background: var(--navy);
            color: var(--white);
            border: none;
            border-radius: var(--radius-md);
            font-size: 15px;
            font-weight: 500;
            font-family: 'DM Sans', sans-serif;
            cursor: pointer;
            margin-top: 22px;
            letter-spacing: 0.3px;
            transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .submit-btn:hover {
            opacity: 0.88;
            box-shadow: var(--shadow-btn);
        }

        .submit-btn:active {
            transform: scale(0.985);
        }

        .submit-btn .ti {
            font-size: 16px;
        }

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 20px 0;
            font-size: 13px;
            color: var(--text-hint);
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        /* Social */
        .social-row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .social-btn {
            height: 42px;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: transparent;
            font-size: 18px;
            font-weight: 400;
            font-family: 'DM Sans', sans-serif;
            color: var(--text-main);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background var(--transition), border-color var(--transition);
        }

        .social-btn:hover {
            background: var(--off-white);
            border-color: rgba(10, 35, 66, 0.2);
        }

        .social-btn .ti {
            font-size: 18px;
        }

        .social-btn.google .ti {
            color: #ea4335;
        }

        .social-btn.facebook .ti {
            color: #1877f2;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 28px;
            right: 28px;
            background: var(--navy);
            color: var(--white);
            padding: 14px 20px;
            border-radius: var(--radius-md);
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
            transform: translateY(80px);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
            max-width: 320px;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast .ti {
            font-size: 18px;
            color: var(--accent-lt);
        }

        /* Responsive */
        @media (max-width: 720px) {
            .panel-left {
                display: none;
            }

            .panel-left img,
            .img-overlay {
                display: none;
            }

            .panel-right {
                padding: 36px 28px;
            }

            .card {
                max-width: 420px;
            }
        }

        @media (max-width: 400px) {
            .panel-right {
                padding: 28px 20px;
            }

            .field-row {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .score-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .social-row {
                grid-template-columns: 1fr;
            }
        }

/* ── Animations ── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ti-loader, .ti-loader-2 {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* ── Auth logo image ── */
.auth-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

