﻿

/* ================================================================
           1. RESET & GLOBAL
           ================================================================ */
* *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --nav-h: 72px;
    --foot-h: 44px;
    --primary: #16a34a;
    --primary-dark: #0d7a3a;
    --primary-deep: #085e2b;
    --gold: #fbbf24;
    --gold-dark: #f59e0b;
    --lime: #a3e635;
    --text-dark: #145c3e;
    --text-body: #1e2f40;
    --text-muted: #6b7c8e;
    --border-light: #e2e8f0;
    --radius-pill: 60px;
    --radius-card: 32px;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-h);
    padding-bottom: var(--foot-h);
    overflow-x: hidden;
    color: var(--text-body);
    line-height: 1.5;
    font-size: 16px;
}

img, svg {
    max-width: 100%;
    display: block;
}

/* Prevent iOS zoom on input focus (16px+ font) */
input, select, textarea, button {
    font-size: 16px;
    font-family: inherit;
}

/* ================================================================
       2. FIXED NAVBAR (responsive)
       ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e9edf2;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

    .logo i {
        color: var(--primary);
        font-size: clamp(1.4rem, 3vw, 1.9rem);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 2rem);
    font-weight: 500;
}

    .nav-links a {
        text-decoration: none;
        color: #2c3e50;
        font-size: clamp(0.85rem, 1.5vw, 1rem);
        transition: color 0.2s;
        white-space: nowrap;
    }

        .nav-links a:hover,
        .nav-links a:focus {
            color: var(--primary);
        }

    .nav-links .btn-nav {
        background: linear-gradient(145deg, var(--primary), var(--primary-dark));
        color: #fff !important;
        padding: 0.5rem 1.4rem;
        border-radius: 30px;
        font-weight: 600;
        font-size: clamp(0.8rem, 1.4vw, 0.9rem);
        box-shadow: 0 4px 12px rgba(22,163,74,0.3);
        transition: transform 0.15s, background 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .nav-links .btn-nav:hover {
            background: linear-gradient(145deg, var(--primary-dark), var(--primary-deep));
        }

        .nav-links .btn-nav:active {
            transform: scale(0.97);
        }

/* ================================================================
       3. MAIN SCROLLABLE AREA (background image + overlay)
       ================================================================ */
.main-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: stretch;
    background-image: url('https://images.unsplash.com/photo-1631815588090-d4bfec5b1ccb?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-y: auto;
    min-height: calc(100vh - var(--nav-h) - var(--foot-h));
}

/* iOS Safari doesn't support background-attachment: fixed well */
@supports (-webkit-touch-callout: none) {
    .main-content {
        background-attachment: scroll;
    }
}

.main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,60,35,0.55), rgba(10,30,50,0.65));
    z-index: 1;
    pointer-events: none;
}

.split-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    flex-wrap: wrap;
}

/* ================================================================
       4. LEFT CONTENT
       ================================================================ */
.left-content {
    flex: 1 1 340px;
    min-width: 0;
    max-width: 550px;
    color: #fff;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

    .left-content .badge-lucky {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(145deg, var(--gold), var(--gold-dark));
        color: #4a2c00;
        font-weight: 700;
        font-size: clamp(0.75rem, 1.5vw, 0.85rem);
        padding: 0.45rem 1rem;
        border-radius: 40px;
        margin-bottom: 1.2rem;
        box-shadow: 0 6px 18px rgba(251,191,36,0.45);
        letter-spacing: 0.4px;
    }

    .left-content h1 {
        font-size: clamp(1.9rem, 5vw, 3rem);
        font-weight: 700;
        line-height: 1.15;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }

        .left-content h1 .highlight {
            background: linear-gradient(120deg, var(--gold), var(--lime));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
        }

        .left-content h1 i {
            color: var(--lime);
        }

    .left-content p {
        font-size: clamp(0.95rem, 1.6vw, 1.1rem);
        line-height: 1.65;
        margin-bottom: 2rem;
        opacity: 0.95;
    }

.feature-list {
    list-style: none;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 0.9rem;
        font-size: clamp(0.85rem, 1.5vw, 1rem);
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        padding: 0.7rem 1.2rem;
        border-radius: var(--radius-pill);
        border: 1px solid rgba(255,255,255,0.18);
        width: fit-content;
        max-width: 100%;
    }

    .feature-list i {
        color: var(--lime);
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

/* ================================================================
       5. RIGHT LOGIN CARD — PROFESSIONAL COMPACT DESIGN
       ================================================================ */
.login-card {
    flex: 0 0 340px;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 26px 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08), 0 20px 48px rgba(22,163,74,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

    /* Top accent gradient bar */
    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
        border-radius: 16px 16px 0 0;
    }

    /* Subtle corner glow */
    .login-card::after {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(22,163,74,0.08), transparent 70%);
        pointer-events: none;
    }

    /* ---------- HEADER ---------- */
    .login-card h2 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0 0 4px 0; /* ✅ margin-top: 0 */
        padding: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        line-height: 1.3;
        letter-spacing: -0.2px;
    }

        .login-card h2 .icon-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 9px;
            background: linear-gradient(145deg, var(--primary), var(--primary-dark));
            color: #fff;
            font-size: 15px;
            box-shadow: 0 4px 10px rgba(22,163,74,0.28);
            flex-shrink: 0;
        }

    /* ---------- SUBTITLE ---------- */
    .login-card .subtitle {
        color: var(--text-muted);
        font-size: 12px;
        margin: 0 0 18px 0;
        padding: 0 0 14px 0;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 400;
        line-height: 1.5;
    }

    /* ---------- FORM ---------- */
    .login-card .form-group {
        margin-bottom: 14px;
    }

        .login-card .form-group label {
            display: block;
            font-weight: 600;
            font-size: 11px;
            color: #4b5563;
            margin: 0 0 6px 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

            .login-card .form-group label .req {
                color: #ef4444;
                margin-left: 2px;
            }

        .login-card .form-group input,
        .login-card .form-group select,
        .login-card .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid #e5e7eb;
            border-radius: 9px;
            font-size: 14px;
            background: #ffffff;
            color: #111827;
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s;
            -webkit-appearance: none;
            appearance: none;
        }

            .login-card .form-group input:hover,
            .login-card .form-group select:hover {
                border-color: #d1d5db;
            }

            .login-card .form-group input:focus,
            .login-card .form-group select:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
            }

            .login-card .form-group input::placeholder {
                color: #9ca3af;
            }

    /* ---------- BUTTON ---------- */
    .login-card .btn-primary {
        width: 100%;
        padding: 11px 16px;
        background: linear-gradient(145deg, var(--primary), var(--primary-dark));
        color: #fff;
        border: none;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 4px;
        box-shadow: 0 4px 12px rgba(22,163,74,0.25);
        transition: all 0.15s;
        letter-spacing: 0.2px;
    }

        .login-card .btn-primary:hover {
            background: linear-gradient(145deg, var(--primary-dark), var(--primary-deep));
            box-shadow: 0 6px 16px rgba(22,163,74,0.35);
            transform: translateY(-1px);
        }

        .login-card .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(22,163,74,0.25);
        }

    /* ---------- ERROR / ALERT ---------- */
    .login-card .error-msg,
    .login-card .validation-error {
        display: block;
        color: #dc2626;
        font-size: 12px;
        margin: 8px 0 0;
        padding: 7px 12px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 7px;
        text-align: center;
        font-weight: 500;
        line-height: 1.4;
    }

        .login-card .error-msg:empty {
            display: none;
        }

    /* ---------- LINK ROW ---------- */
    .login-card .link-row {
        margin: 16px 0 0;
        padding: 0;
        text-align: center;
        font-size: 12px;
        color: #6b7280;
        line-height: 1.6;
    }

        .login-card .link-row a {
            color: var(--primary-dark);
            font-weight: 600;
            text-decoration: none;
            transition: color 0.15s;
        }

            .login-card .link-row a:hover {
                color: var(--primary);
                text-decoration: underline;
            }

        .login-card .link-row .divider {
            margin: 0 6px;
            color: #d1d5db;
        }

    /* ---------- OTP toggle ---------- */
    .login-card .mobile-toggle {
        text-align: right;
        margin: 0 0 10px 0;
        font-size: 11px;
    }

        .login-card .mobile-toggle a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            border-bottom: 1px dashed rgba(22,163,74,0.4);
        }

            .login-card .mobile-toggle a:hover {
                color: var(--primary-dark);
            }

    /* ---------- DEMO INFO BOX ---------- */
    .login-card .demo-info {
        margin: 14px 0 0;
        padding: 8px 12px;
        font-size: 11px;
        color: #4b5563;
        text-align: center;
        background: #f0fdf4;
        border: 1px dashed #bbf7d0;
        border-radius: 8px;
        line-height: 1.5;
    }

        .login-card .demo-info strong {
            color: var(--text-dark);
        }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
    .login-card {
        padding: 18px 20px 20px;
        max-width: 100%;
        border-radius: 14px;
    }

        .login-card h2 {
            font-size: 16px;
        }

        .login-card .subtitle {
            font-size: 11px;
            margin-bottom: 16px;
            padding-bottom: 12px;
        }

        .login-card .form-group {
            margin-bottom: 12px;
        }

            .login-card .form-group input {
                padding: 9px 12px;
                font-size: 13px;
            }

        .login-card .btn-primary {
            padding: 10px 14px;
            font-size: 13px;
        }
}

@media (max-width: 480px) {
    .login-card {
        padding: 16px 18px 18px;
        border-radius: 12px;
    }

        .login-card h2 {
            font-size: 15px;
            gap: 8px;
        }

            .login-card h2 .icon-badge {
                width: 28px;
                height: 28px;
                font-size: 13px;
            }

        .login-card .subtitle {
            font-size: 11px;
            margin-bottom: 14px;
            padding-bottom: 10px;
        }
}
/* ---------- Form elements ---------- */
.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        font-size: clamp(0.78rem, 1.3vw, 0.85rem);
        color: var(--text-body);
        margin-bottom: 6px;
    }

        .form-group label .req {
            color: #e74c3c;
            margin-left: 2px;
        }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="tel"],
    .form-group input[type="email"] {
        width: 100%;
        padding: clamp(11px, 1.8vw, 14px) clamp(14px, 2vw, 18px);
        border: 1.5px solid #dde4ec;
        border-radius: var(--radius-pill);
        font-size: 16px; /* prevents iOS zoom */
        background: #f9fcff;
        outline: none;
        transition: border 0.2s, box-shadow 0.2s;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-group input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
        background: #fff;
    }

.validation-error {
    color: #e74c3c;
    font-size: clamp(0.72rem, 1.2vw, 0.8rem);
    margin-top: 5px;
    display: block;
}

/* ---------- Buttons ---------- */
.btn {
    width: 100%;
    min-height: 44px; /* tap target */
    padding: clamp(11px, 1.8vw, 14px);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 18px rgba(22,163,74,0.35);
}

    .btn-primary:hover {
        background: linear-gradient(145deg, var(--primary-dark), var(--primary-deep));
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

.btn-secondary {
    background: #eef7f1;
    color: var(--text-dark);
    border: 1.5px solid #bbf7d0;
}

    .btn-secondary:hover {
        background: #dff5e5;
    }

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    margin-bottom: 18px;
    text-align: center;
    word-wrap: break-word;
}

.alert-danger {
    background: #fdecea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}

.alert-success {
    background: #e6f7ec;
    color: #1e7d4a;
    border: 1px solid #b9e6c9;
}

/* ---------- OTP toggle + section ---------- */
.mobile-toggle {
    text-align: right;
    margin-bottom: 8px;
    font-size: clamp(0.78rem, 1.3vw, 0.85rem);
}

    .mobile-toggle a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border-bottom: 1px dashed var(--primary);
    }

        .mobile-toggle a:hover {
            color: var(--primary-dark);
        }

.otp-section {
    margin-top: 16px;
    border-top: 1px dashed #d0ddee;
    padding-top: 18px;
}

    .otp-section h4 {
        font-size: clamp(0.85rem, 1.4vw, 0.95rem);
        color: var(--text-body);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .otp-section h4 i {
            color: var(--primary);
        }

.otp-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .otp-row input {
        flex: 2 1 130px;
        min-width: 0;
        padding: clamp(11px, 1.8vw, 14px) clamp(14px, 2vw, 18px);
        border: 1.5px solid #dde4ec;
        border-radius: var(--radius-pill);
        font-size: 16px;
        background: #f9fcff;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }

        .otp-row input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
        }

    .otp-row .btn {
        flex: 1 1 110px;
        min-width: 0;
        padding: clamp(11px, 1.8vw, 14px) 10px;
        font-size: clamp(0.82rem, 1.4vw, 0.9rem);
    }

.hidden {
    display: none !important;
}

/* ---------- Link row + demo info ---------- */
.link-row {
    margin-top: 16px;
    text-align: center;
    font-size: clamp(0.78rem, 1.3vw, 0.87rem);
    color: #5b6b7c;
    line-height: 1.6;
}

    .link-row a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }

        .link-row a:hover {
            text-decoration: underline;
        }

    .link-row .divider {
        margin: 0 8px;
        color: #cbd5e1;
    }

.demo-info {
    margin-top: 14px;
    font-size: clamp(0.7rem, 1.2vw, 0.78rem);
    color: #5b6b7c;
    text-align: center;
    background: #f0fdf4;
    padding: 9px 12px;
    border-radius: 40px;
    border: 1px dashed #bbf7d0;
    word-wrap: break-word;
}

    .demo-info strong {
        color: var(--text-dark);
    }

/* ================================================================
       6. FIXED FOOTER (responsive)
       ================================================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--foot-h);
    background: #0b2e1c;
    color: #b7d9c4;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    border-top: 1px solid #1a5233;
}

    .footer .copyright {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .footer .copyright i {
            color: var(--gold);
            margin-right: 4px;
        }

    .footer .footer-links {
        display: flex;
        align-items: center;
        gap: clamp(0.8rem, 2vw, 1.8rem);
        flex-wrap: wrap;
    }

        .footer .footer-links a {
            color: #b7d9c4;
            text-decoration: none;
            transition: color 0.2s;
        }

            .footer .footer-links a:hover {
                color: var(--gold);
            }

/* ================================================================
       7. RESPONSIVE BREAKPOINTS
       ================================================================ */

/* ---------- Large Desktop (1440px+) ---------- */
@media (min-width: 1440px) {
    .split-container {
        max-width: 1300px;
    }

    .left-content h1 {
        font-size: 3.2rem;
    }

    .login-card {
        max-width: 460px;
    }
}

/* ---------- Laptop (1024px – 1439px) ---------- */
@media (max-width: 1024px) {
    :root {
        --nav-h: 68px;
    }

    .split-container {
        gap: 1.8rem;
    }

    .left-content h1 {
        font-size: clamp(1.9rem, 4vw, 2.6rem);
    }

    .login-card {
        max-width: 420px;
    }
}

/* ---------- Tablet (768px – 1023px) ---------- */
@media (max-width: 1023px) {
    :root {
        --nav-h: 64px;
        --foot-h: 60px;
    }

    .nav-links {
        gap: 1.2rem;
    }

        .nav-links a {
            font-size: 0.9rem;
        }

        .nav-links .btn-nav {
            padding: 0.4rem 1rem;
            font-size: 0.82rem;
        }

    .split-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .left-content {
        text-align: center;
        max-width: 600px;
        padding: 0;
    }

        .left-content h1 {
            font-size: clamp(1.8rem, 4.5vw, 2.4rem);
        }

    .feature-list li {
        margin-left: auto;
        margin-right: auto;
    }

    .login-card {
        max-width: 480px;
    }
}

/* ---------- Mobile Landscape (481px – 767px) ---------- */
@media (max-width: 767px) {
    :root {
        --nav-h: auto;
        --foot-h: auto;
    }

    body {
        padding-top: 110px;
        padding-bottom: 90px;
    }

    .navbar {
        height: auto;
        padding: 0.7rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

        .nav-links a {
            font-size: 0.82rem;
        }

        .nav-links .btn-nav {
            padding: 0.35rem 0.9rem;
            font-size: 0.78rem;
        }

    .split-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .left-content h1 {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .left-content p {
        font-size: 0.92rem;
        margin-bottom: 1.4rem;
    }

    .feature-list li {
        font-size: 0.85rem;
        padding: 0.55rem 1rem;
    }

    .login-card {
        padding: 1.6rem 1.2rem;
        border-radius: 24px;
        max-width: 100%;
    }

        .login-card h2 {
            font-size: 1.35rem;
        }

        .login-card .subtitle {
            font-size: 0.8rem;
        }

    .otp-row input {
        flex: 1 1 100%;
    }

    .otp-row .btn {
        flex: 1 1 100%;
    }

    .footer {
        height: auto;
        flex-direction: column;
        padding: 0.7rem 1rem;
        text-align: center;
        gap: 0.4rem;
        font-size: 0.75rem;
    }

        .footer .footer-links {
            gap: 1rem;
            justify-content: center;
        }
}

/* ---------- Small Phones (≤ 480px) ---------- */
@media (max-width: 480px) {
    body {
        padding-top: 130px;
        padding-bottom: 100px;
    }

    .navbar {
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
    }

    .logo {
        font-size: 1.15rem;
    }

        .logo i {
            font-size: 1.4rem;
        }

    .nav-links {
        gap: 0.6rem;
    }

        .nav-links a {
            font-size: 0.75rem;
        }

        .nav-links .btn-nav {
            padding: 0.3rem 0.75rem;
            font-size: 0.72rem;
        }

    .split-container {
        padding: 1rem 0.8rem;
        gap: 1.2rem;
    }

    .left-content h1 {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
    }

    .left-content p {
        font-size: 0.85rem;
    }

    .feature-list li {
        font-size: 0.78rem;
        padding: 0.5rem 0.85rem;
    }

    .login-card {
        padding: 1.4rem 1rem;
        border-radius: 20px;
    }

        .login-card h2 {
            font-size: 1.2rem;
        }

            .login-card h2 .icon-badge {
                width: 34px;
                height: 34px;
                font-size: 0.95rem;
            }

        .login-card .subtitle {
            font-size: 0.75rem;
            margin-bottom: 1rem;
        }

    .form-group {
        margin-bottom: 12px;
    }

        .form-group label {
            font-size: 0.75rem;
        }

        .form-group input {
            padding: 11px 14px;
        }

    .btn {
        min-height: 42px;
        padding: 11px;
        font-size: 0.88rem;
    }

    .alert {
        padding: 10px 14px;
        font-size: 0.78rem;
        border-radius: 20px;
    }

    .demo-info {
        font-size: 0.68rem;
        padding: 7px 10px;
    }

    .link-row {
        font-size: 0.74rem;
    }

        .link-row .divider {
            display: none;
        }

        .link-row a {
            display: inline-block;
            margin: 2px 0;
        }

    .footer {
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
    }

        .footer .footer-links {
            gap: 0.7rem;
        }
}

/* ---------- Extra Small (≤ 360px) ---------- */
@media (max-width: 360px) {
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    /* keep only portal btn */
    .left-content h1 {
        font-size: 1.4rem;
    }

    .feature-list li {
        font-size: 0.72rem;
    }

    .login-card {
        padding: 1.2rem 0.85rem;
    }
}

/* ---------- Landscape phones (short height) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding-top: 90px;
        padding-bottom: 80px;
    }

    .split-container {
        padding: 1rem 1.5rem;
    }

    .left-content h1 {
        font-size: 1.6rem;
    }

    .left-content p {
        display: none;
    }
    /* hide to save vertical space */
    .feature-list {
        display: none;
    }

    .login-card {
        padding: 1.2rem 1.4rem;
    }
}

/* ---------- Reduced motion (accessibility) ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}


