/* ============================================================
   eTempah - 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: 48%;
    background: linear-gradient(180deg, #fff 0%, #fff 60%, #FFF1F2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #f0f0f0;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(230,57,70,0.04);
    border-radius: 50%;
    top: -100px; right: -100px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    background: rgba(230,57,70,0.06);
    border-radius: 50%;
    bottom: -80px; left: -80px;
}

/* Red wave at bottom of brand panel */
.brand-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
    z-index: 0;
}
.brand-wave svg { display: block; width: 100%; }

.brand-content {
    position: relative;
    z-index: 1;
    color: #1D3557;
    text-align: center;
    width: 100%;
}

.brand-logo-lg {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: none;
    border: none;
}

.brand-logo-lg img {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
}

/* Animated illustration */
.brand-anim {
    margin: 1.5rem auto;
    width: 100%;
    max-width: 320px;
    position: relative;
}

/* Floating cards animation */
.anim-card {
    background: #fff;
    border-radius: 14px;
    padding: .75rem 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .82rem;
    font-weight: 600;
    color: #1D3557;
    animation: floatCard 3s ease-in-out infinite;
    position: relative;
}
.anim-card:nth-child(1) { animation-delay: 0s; margin-bottom: .75rem; }
.anim-card:nth-child(2) { animation-delay: .5s; margin-bottom: .75rem; margin-left: 1.5rem; }
.anim-card:nth-child(3) { animation-delay: 1s; margin-left: .75rem; }

.anim-card-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex: none;
}

.anim-dot {
    width: 8px; height: 8px; border-radius: 50%;
    margin-left: auto; flex: none;
    animation: blink 2s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

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

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

.brand-tagline-lg {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: 0;
    font-weight: 400;
}

.brand-features { display: none; }

.brand-credit {
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 1.5rem;
}

/* ── 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%; }
}
