/* ============================================================
   SAMS - Auth Pages (Login)
   Mobile-First
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    background: #0f172a;
}

/* Left branding panel — hidden on mobile, shown on desktop */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, .3) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, .2) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    border-radius: 50%;
}

.auth-left .logo {
    position: relative;
    z-index: 1;
}

.auth-left .logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(79, 70, 229, .4);
}

.auth-left h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
}

.auth-left h1 span {
    color: #818cf8;
}

.auth-left p {
    font-size: 14.5px;
    color: #94a3b8;
    margin-top: 12px;
    line-height: 1.6;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    position: relative;
    z-index: 1;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 12px;
    text-align: left;
}

.auth-features li i {
    color: #818cf8;
    font-size: 15px;
    width: 20px;
}

/* Right form panel */
.auth-right {
    width: 440px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 44px;
    position: relative;
}

.auth-right .auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.auth-right .auth-sub {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 32px;
}

.auth-right .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 14px;
    transition: all .2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.auth-right .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
    outline: none;
}

.auth-right .input-group-text {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #94a3b8;
    font-size: 16px;
    padding: 0 13px;
    display: flex;
    align-items: center;
}

.auth-right .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.auth-right .mb-3 {
    margin-bottom: 18px !important;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(79, 70, 229, .3);
    -webkit-tap-highlight-color: transparent;
}

.btn-login:hover,
.btn-login:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .4);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 12.5px;
    color: #94a3b8;
}

.auth-footer a {
    color: #4f46e5;
    font-weight: 600;
}

/* ─── Mobile: single-column card layout ─────────────────── */
@media (max-width: 767px) {
    .auth-page {
        background: #f1f5f9;
        align-items: flex-start;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
        min-height: 100vh;
        padding: 40px 24px 32px;
        background: #fff;
        justify-content: flex-start;
        padding-top: 60px;
    }

    /* Show a compact header on mobile */
    .auth-right::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #4f46e5, #06b6d4);
        border-radius: 0;
    }

    /* Mobile logo above form */
    .auth-mobile-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 32px;
    }

    .auth-mobile-logo .logo-icon {
        width: 46px;
        height: 46px;
        background: linear-gradient(135deg, #4f46e5, #06b6d4);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 900;
        color: #fff;
        flex-shrink: 0;
    }

    .auth-mobile-logo .logo-text {
        font-size: 18px;
        font-weight: 800;
        color: #1e293b;
    }

    .auth-mobile-logo .logo-text span {
        font-size: 12px;
        font-weight: 400;
        color: #64748b;
        display: block;
    }
}

@media (min-width: 768px) {
    .auth-mobile-logo {
        display: none;
    }
}