:root {
    --bg-base: #0F1115;
    --bg-card: #161920;
    --bg-input: #0F1115;
    --border-color: #262B35;
    --border-hover: #2F3644;
    
    --text-white: #FFFFFF;
    --text-neutral-200: #E2E8F0;
    --text-neutral-300: #CBD5E1;
    --text-neutral-400: #94A3B8;
    --text-neutral-500: #64748B;
    
    --brand-blue-500: #3B82F6;
    --brand-blue-600: #2563EB;
    --brand-blue-700: #1D4ED8;
    --brand-cyan: #06b6d4;
    
    --emerald-500: #10b981;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --space-xs: 0.25rem;   
    --space-sm: 0.5rem;    
    --space-md: 0.75rem;   
    --space-lg: 1rem;      
    --space-xl: 2rem;      
    --space-2xl: 3rem;     
}

html { height: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

::selection {
    background-color: var(--brand-blue-600);
    color: white;
}


.main-header {
    height: 5rem;
    width: 100%;
    background-color: rgba(8, 9, 12, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 48, 60, 0.4);
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.header-inner {
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 5rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}
@media (min-width: 640px) { .logo-img { height: 5rem; } }
.brand-link:hover .logo-img { transform: scale(1.05); }

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-trigger {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: var(--brand-blue-600); 
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-trigger:hover { background-color: var(--brand-blue-700); }
.menu-trigger:active { transform: scale(0.95); }

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: #0D0F12;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 0.5rem;
    z-index: 50;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
}
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu.hidden {
    display: none;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-neutral-200);
    text-decoration: none;
    transition: all 0.2s;
}
.dropdown-link:hover {
    background-color: rgba(38, 43, 53, 0.8);
    color: var(--text-white);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(38, 43, 53, 0.8);
    margin: 0.25rem 0;
}

.login-link {
    color: var(--brand-blue-500);
    font-weight: 600;
}
.login-link:hover {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--text-white);
}


.desktop-nav {
    display: none;
    align-items: center;
    gap: var(--space-xl); 
}
@media (min-width: 1024px) { 
    .desktop-nav { display: flex; } 
}

.nav-link {
    font-size: 14px; 
    line-height: 20px; 
    font-weight: 500;
    color: var(--text-neutral-400); 
    text-decoration: none; 
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover { color: var(--text-white); }
.nav-link.active { 
    color: var(--brand-blue-500); 
    font-weight: 600; 
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-blue-500);
    border-radius: 2px;
}

.login-main {
    flex: 1;
    min-height: 100vh;
    padding-top: 8rem; 
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .login-main { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .login-main { padding-left: 2rem; padding-right: 2rem; } }

.auth-card {
    width: 100%;
    max-width: 28rem;
    margin-top: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
    .auth-card {
        max-width: 56rem;
        grid-template-columns: repeat(2, 1fr);
    }
}

.brand-panel {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    background: linear-gradient(to bottom, #1C2029, #151821, #101217);
    border-right: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) { .brand-panel { display: flex; } }

.glow-1 {
    position: absolute;
    top: -6rem;
    left: -6rem;
    width: 18rem;
    height: 18rem;
    background-color: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    filter: blur(3rem);
    pointer-events: none;
}
.glow-2 {
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    filter: blur(3rem);
    pointer-events: none;
}

.panel-content { position: relative; z-index: 10; }

.badge-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(30, 58, 138, 0.6);
    border: 1px solid rgba(30, 64, 175, 0.6);
    color: #60a5fa;
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}
.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--brand-blue-500);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.panel-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.panel-desc {
    font-size: 0.875rem;
    color: var(--text-neutral-400);
    line-height: 1.625;
}

.feature-list {
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.feature-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}
.feature-icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #202530;
    border: 1px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.feature-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-neutral-200);
    margin: 0;
}
.feature-text p {
    font-size: 0.75rem;
    color: var(--text-neutral-400);
    margin-top: 0.125rem;
    line-height: 1.4;
}

.panel-footer {
    position: relative;
    z-index: 10;
    padding-top: 2rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(38, 43, 53, 0.8);
}
.car-preview {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(64, 64, 64, 0.6);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.car-preview img {
    width: 100%;
    height: 9rem;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.5s;
}
.car-preview:hover img { transform: scale(1.05); }
.preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-base), rgba(15, 17, 21, 0.6), transparent);
}
.preview-meta {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.meta-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--emerald-500);
}
.meta-text { font-size: 11px; font-weight: 500; color: var(--text-neutral-300); }

.form-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-card);
}
@media (min-width: 640px) { .form-panel { padding: 2.5rem; } }
@media (min-width: 768px) { .form-panel { padding: 3rem; } }

.form-header { margin-bottom: 1.5rem; }
.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}
@media (min-width: 640px) { .form-title { font-size: 1.875rem; } }
.form-subtitle {
    font-size: 0.875rem;
    color: var(--text-neutral-400);
    margin-top: 0.375rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.input-group { display: flex; flex-direction: column; }
.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-neutral-300);
    margin-bottom: 0.375rem;
}
.input-wrapper { 
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 0.75rem;
    display: flex;
    align-items: center;
    color: var(--text-neutral-500);
    pointer-events: none;
}
.form-input {
    width: 100%;
    min-height: 44px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding-left: 2.5rem;
    padding-right: 2.75rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus {
    border-color: var(--brand-blue-500);
    box-shadow: 0 0 0 1px var(--brand-blue-500);
}
.form-input::placeholder { color: var(--text-neutral-500); }

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-neutral-400);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    padding: 0;
}
.password-toggle:hover { color: white; }

.btn-submit {
    width: 100%;
    min-height: 44px;
    background-color: var(--brand-blue-600);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    padding: 0.875rem 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit:hover { background-color: var(--brand-blue-700); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit svg { transition: transform 0.2s; }
.btn-submit:hover svg { transform: translateX(0.25rem); }

.security-badge {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 11px;
    color: var(--text-neutral-500);
}
.security-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--emerald-500);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.hidden { display: none !important; }
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%); 
    background: none;
    border: none;
    color: var(--text-neutral-400);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 10;
}