/*------------------------------------------------------------------
* Modern split-screen auth layout for AutoFlashPro
-------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #0b1224;
    --panel: #ffffff;
    --border: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --text-muted: #475569;
    --primary: #2563eb;
    --primary-strong: #7c3aed;
    --radius: 18px;
    --card-bg: #ffffff;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

:root[data-theme='dark'] {
    --bg-body: #0b1224;
    --panel: rgba(15, 23, 42, 0.95);
    --border: rgba(148, 163, 184, 0.2);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #6ee7ff;
    --primary-strong: #8b5cf6;
    --card-bg: rgba(15, 23, 42, 0.94);
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--bg-body);
}

/*------------------------------------------------------------------
[Split screen layout]
-------------------------------------------------------------------*/
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* LEFT PANEL — brand */
.auth-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 75%, #4c1d95 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    color: #fff;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(110, 231, 255, 0.18) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.22) 0, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(244, 114, 182, 0.12) 0, transparent 35%);
    pointer-events: none;
}

.auth-brand::after {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    filter: blur(60px);
    pointer-events: none;
}

.auth-brand-inner { position: relative; z-index: 1; }

.auth-brand-logo {
    height: 52px;
    object-fit: contain;
    margin-bottom: 2.5rem;
    filter: brightness(0) invert(1);
}

.auth-brand-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-brand-title span {
    background: linear-gradient(90deg, #6ee7ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0 0 2.5rem;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.auth-brand-features li .feat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.12);
}

.auth-brand-badge {
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.auth-brand-badge::before {
    content: '';
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

/* RIGHT PANEL — form */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8fafc;
    position: relative;
}

:root[data-theme='dark'] .auth-form-panel {
    background: #0f172a;
}

.auth-form-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.06) 0, transparent 30%),
        radial-gradient(circle at 20% 90%, rgba(124, 58, 237, 0.07) 0, transparent 30%);
    pointer-events: none;
}

.auth-form-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-form-logo {
    display: none;
    height: 44px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.auth-form-heading {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.auth-form-subhead {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.25rem 2rem;
}

:root[data-theme='dark'] .auth-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.15);
}

.auth-card .form-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-card .form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255,255,255,0.6);
    transition: border-color 0.2s, box-shadow 0.2s;
}

:root[data-theme='dark'] .auth-card .form-control {
    background: rgba(255,255,255,0.04);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--text);
}

.auth-card .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #fff;
}

:root[data-theme='dark'] .auth-card .form-control:focus {
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.12);
}

.auth-card .form-control::placeholder { color: #94a3b8; }

.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.auth-input-group .form-control {
    padding-left: 42px;
}

.btn-auth {
    width: 100%;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: linear-gradient(120deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

:root[data-theme='dark'] .btn-auth {
    background: linear-gradient(120deg, #6ee7ff, #8b5cf6);
    color: #0b1224;
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.btn-auth:active { transform: translateY(0); }

.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

:root[data-theme='dark'] .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.theme-toggle-auth {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

:root[data-theme='dark'] .theme-toggle-auth {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148,163,184,0.2);
    color: #94a3b8;
}

.theme-toggle-auth:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/*------------------------------------------------------------------
[Responsive — stack vertically on mobile]
-------------------------------------------------------------------*/
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    .auth-brand { display: none; }
    .auth-form-logo { display: block; }
    .auth-form-panel {
        align-items: flex-start;
        padding: 2.5rem 1.25rem 1.25rem;
    }
    .auth-form-inner { max-width: 100%; }
    .theme-toggle-auth { top: 1rem; right: 1rem; }
}
