/* ================== LOGIN PAGE ================== */

/* ── Keyframes ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .login-page-wrap *,
    .login-page-wrap *::before,
    .login-page-wrap *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }
}

/* ── Page Wrapper ── */
.login-page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Split Layout ── */
.login-split {
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 960px) {
    .login-split {
        flex-direction: row;
        min-height: 100vh;
    }
}

/* ── Hero Panel ── */
.login-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 60%, #1e3a8a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.login-hero::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 10%;
    right: 10%;
    height: 2px;
    border-bottom: 2px dashed rgba(255,255,255,0.15);
}

@media (min-width: 960px) {
    .login-hero {
        flex: 0 0 42%;
        max-width: 500px;
        padding: 3rem 2.5rem;
    }
    .login-hero::after {
        bottom: 3rem;
    }
}

.login-hero-content {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

@media (min-width: 960px) {
    .login-hero-content {
        text-align: left;
    }
}

/* Theme toggle inside hero */
.login-hero .theme-toggle-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255,255,255,0.7);
    z-index: 2;
}
.login-hero .theme-toggle-btn:hover {
    color: #fff;
}

/* Force all hero text/icons white — overrides global heading/icon color rules */
.login-hero,
.login-hero h1,
.login-hero i,
.login-hero .app-icon,
.login-hero .feature-item,
.login-hero .feature-icon {
    color: #fff !important;
}

/* Hero icon / text */
.login-hero .app-icon {
    font-size: 3.25rem;
    display: block;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.login-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.login-hero .tagline {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.95rem;
    margin-bottom: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

/* Feature highlights */
.login-hero-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-hero-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.login-hero-features .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Hide features on mobile to keep hero compact */
@media (max-width: 959.98px) {
    .login-hero-features {
        display: none;
    }
}

/* ── Form Side ── */
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary, #f8f6f2);
    padding: 2rem 1rem;
}

@media (min-width: 960px) {
    .login-form-side {
        padding: 2rem 2.5rem;
    }
}

/* ── Login Card ── */
.login-card-wrap {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out var(--motion-fast);
    animation-fill-mode: both;
}

.login-card-wrap .card {
    border-radius: var(--card-radius);
}

.login-card-wrap .welcome-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary, #333);
}

.login-card-wrap .welcome-sub {
    color: var(--text-muted, #5c636a);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ── Register Button ── */
.btn-register {
    background: transparent;
    border: 2px solid var(--success-green, #198754);
    color: var(--success-green, #198754);
}

.btn-register:hover {
    background: var(--success-green, #198754);
    color: #fff;
    box-shadow: 0 2px 10px rgba(25, 135, 84, 0.3);
}

/* ── Auth Page Variants ── */

/* Register page: wider card for the longer form */
.login-card-wrap.auth-wide {
    max-width: 520px;
}

/* Scrollable form side for long forms (register) */
@media (min-width: 960px) {
    .login-form-side.auth-scroll {
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* ── Dark Mode ── */
.dark-mode .login-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #162d4a 60%, #0f1f33 100%);
}

.dark-mode .login-hero .theme-toggle-btn {
    color: rgba(255,255,255,0.6);
}
.dark-mode .login-hero .theme-toggle-btn:hover {
    color: #fff;
}

.dark-mode .login-form-side {
    background: var(--bg-primary, #141414);
}

.dark-mode .login-card-wrap .welcome-heading {
    color: var(--text-primary, #f1f5f9);
}

.dark-mode .login-card-wrap .welcome-sub {
    color: var(--text-muted, #a1a1aa);
}

.dark-mode .btn-register {
    border-color: var(--success-green, #4ade80);
    color: var(--success-green, #4ade80);
}

.dark-mode .btn-register:hover {
    background: var(--success-green, #4ade80);
    color: #1a1a1a;
}

.dark-mode .login-hero .tagline {
    color: rgba(255,255,255,0.7);
}

