/* ============================================================
   eatGO - Login Page CSS
   Split-panel design: brand left, form right
   ============================================================ */

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

body.login-page {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f4f6f9;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Split Layout ─────────────────────────────────────────── */
.login-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Brand Panel (Left) ───────────────────────────────────── */
.login-brand {
    width: 42%;
    background: linear-gradient(145deg, #1D3557 0%, #E63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px; right: -150px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -100px; left: -100px;
}

.brand-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.brand-logo-lg {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-name-lg {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.brand-name-lg span { color: #FFD700; }

.brand-tagline-lg {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.brand-features { margin-bottom: 3rem; }

.brand-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.brand-feat i { color: #FFD700; font-size: 0.9rem; }

.brand-credit {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* ── Form Panel (Right) ───────────────────────────────────── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.login-form-wrap {
    width: 100%;
    max-width: 400px;
}

/* ── Mobile Logo ──────────────────────────────────────────── */
.mobile-logo {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #E63946, #C1121F);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 0.75rem;
    box-shadow: 0 6px 20px rgba(230,57,70,0.3);
}

/* ── Input fields ─────────────────────────────────────────── */
.input-group-icon {
    position: relative;
}

.input-group-icon > i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.login-input {
    padding-left: 40px !important;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    font-size: 0.9rem;
    height: 46px;
    transition: all 0.2s;
    width: 100%;
}

.login-input:focus {
    border-color: #E63946;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230,57,70,0.08);
    outline: none;
}

.btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    z-index: 2;
    transition: color 0.15s;
}

.btn-eye:hover { color: #E63946; }

/* ── Login Button ─────────────────────────────────────────── */
.btn-login {
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(230,57,70,0.3);
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.4);
}

.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Remember me */
.form-check-input:checked {
    background-color: #E63946;
    border-color: #E63946;
}

.hover-red:hover { color: #E63946 !important; }

/* ── Demo Accounts ────────────────────────────────────────── */
.demo-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.25rem;
}

.demo-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bbb;
    margin-bottom: 0.75rem;
}

.demo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}

.demo-btn:hover {
    background: #FFF1F2;
    border-color: #E63946;
    color: #E63946;
}

.demo-btn i { font-size: 0.7rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .login-split {
        flex-direction: column;
    }

    .login-form-panel {
        min-height: 100vh;
        background: #f4f6f9;
        padding: 2rem 1.25rem;
    }

    .login-form-wrap {
        background: #fff;
        border-radius: 20px;
        padding: 2rem 1.75rem;
        box-shadow: 0 4px 24px rgba(0,0,0,0.06);
        max-width: 440px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .login-brand { width: 45%; }
}
