:root {
    --bg-main: #F4F7FE; /* Softer bluish white for premium feel */
    --bg-surface: rgba(255, 255, 255, 0.85); /* Slightly transparent for glassmorphism */
    --primary: #4318FF; /* Deep, vibrant modern purple/blue */
    --primary-gradient-start: #868CFF;
    --primary-gradient-end: #4318FF;
    --secondary: #F78ED8;
    --info: #8EC5FF;
    --success: #01B574;
    --warning: #FFB547;
    --danger: #EE5D50;
    --text-main: #2B3674; /* Deep indigo for text */
    --text-secondary: #A3AED0;
    --border: #E0E5F2;
    
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --shadow-soft: 0 10px 30px rgba(67, 24, 255, 0.15);
    --shadow-card: 0 18px 40px rgba(112, 144, 176, 0.12);
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.bg-surface { background-color: var(--bg-surface); backdrop-filter: blur(10px); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(67, 24, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 2px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67, 24, 255, 0.05);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.2px;
}
.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1);
}

/* --- Auth Layout --- */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-main);
}

.auth-left {
    flex: 1.2;
    background: url('https://images.unsplash.com/photo-1557682250-33bd709cbe85?ixlib=rb-4.0.3&auto=format&fit=crop&w=1929&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
    position: relative;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(67, 24, 255, 0.8) 0%, rgba(247, 142, 216, 0.6) 100%);
    backdrop-filter: blur(8px);
}

.auth-left-content {
    position: relative;
    z-index: 2;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.auth-left-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-top: 40px;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-left-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 450px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.8;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.8s ease-out;
}

.auth-logo {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-switch {
    display: flex;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 32px;
}

.auth-switch a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-switch a.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.auth-terms {
    margin-top: 24px;
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-left {
        display: none; /* Hide background image on mobile */
    }
    .auth-right {
        padding: 24px;
        min-height: 100vh;
        align-items: center;
    }
    .auth-card {
        padding: 32px 24px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .auth-card h2 {
        font-size: 24px !important;
    }
}
