@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #94a3b8;
    --gray-light: #cbd5e1;
    --border: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--light);
    color: var(--dark);
}

/* ===== SPLIT LAYOUT ===== */
.auth-container { display: flex; width: 100%; min-height: 100vh; }

/* Left Panel - Branding */
.auth-brand {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: var(--gradient-1);
    padding: 3rem; position: relative; overflow: hidden;
}
.auth-brand::before {
    content: ''; position: absolute; top: -30%; right: -20%;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.auth-brand::after {
    content: ''; position: absolute; bottom: -20%; left: -15%;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.brand-content {
    position: relative; z-index: 1;
    text-align: center; color: white; max-width: 420px;
}
.brand-logo {
    font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.brand-logo span { font-size: 2.2rem; }
.brand-content h2 {
    font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem;
    line-height: 1.3;
}
.brand-content p {
    font-size: 1rem; opacity: 0.85; line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Feature pills */
.brand-features { display: flex; flex-direction: column; gap: 0.75rem; }
.brand-feature {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 0.85rem 1.25rem; border-radius: 14px;
    font-size: 0.9rem; font-weight: 500;
    transition: background 0.3s;
}
.brand-feature:hover { background: rgba(255,255,255,0.2); }
.brand-feature .feat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

/* Right Panel - Form */
.auth-form-panel {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 3rem 2rem;
    background: var(--white);
}
.auth-form-wrapper { width: 100%; max-width: 420px; }

.auth-form-header { margin-bottom: 2.5rem; }
.auth-form-header .mobile-logo {
    display: none; font-size: 1.5rem; font-weight: 800;
    background: var(--gradient-1); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 1.5rem;
}
.auth-form-header h1 {
    font-size: 1.75rem; font-weight: 800; color: var(--dark);
    margin-bottom: 0.5rem;
}
.auth-form-header p {
    font-size: 0.95rem; color: var(--gray); line-height: 1.5;
}

/* Form Styles */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--dark-2); margin-bottom: 0.5rem;
}
.form-input {
    width: 100%; padding: 0.85rem 1rem;
    border: 2px solid var(--border); border-radius: 12px;
    font-size: 0.95rem; font-family: 'Inter', sans-serif;
    color: var(--dark); background: var(--white);
    transition: all 0.3s; outline: none;
}
.form-input::placeholder { color: var(--gray-light); }
.form-input:focus {
    border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.form-input.error { border-color: var(--danger); }

.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper .form-input { padding-left: 2.75rem; }
.input-icon-wrapper .input-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    font-size: 1.1rem; color: var(--gray);
    pointer-events: none;
}
.input-icon-wrapper .form-input:focus ~ .input-icon,
.input-icon-wrapper .form-input:focus + .input-icon { color: var(--primary); }

.toggle-password {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; color: var(--gray); padding: 0;
    transition: color 0.2s;
}
.toggle-password:hover { color: var(--primary); }

/* Checkbox */
.form-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}
.form-checkbox {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--dark-2); cursor: pointer;
}
.form-checkbox input {
    width: 18px; height: 18px; accent-color: var(--primary);
    cursor: pointer;
}
.form-link {
    font-size: 0.85rem; color: var(--primary); text-decoration: none;
    font-weight: 600; transition: color 0.2s;
}
.form-link:hover { color: var(--primary-dark); }

/* Submit Button */
.btn-submit {
    width: 100%; padding: 0.9rem; border: none; border-radius: 12px;
    background: var(--gradient-1); color: white;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99,102,241,0.4);
}
.btn-submit:active { transform: translateY(0); }

/* Divider */
.auth-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0; color: var(--gray); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Social Buttons */
.social-buttons { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.btn-social {
    flex: 1; padding: 0.75rem; border: 2px solid var(--border);
    border-radius: 12px; background: var(--white); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-size: 0.9rem; font-weight: 600; color: var(--dark-2);
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.btn-social:hover {
    border-color: var(--primary-light); background: var(--light);
}
.btn-social .social-icon { font-size: 1.15rem; }

/* Footer */
.auth-footer {
    text-align: center; margin-top: 2rem;
    font-size: 0.9rem; color: var(--gray);
}
.auth-footer a {
    color: var(--primary); text-decoration: none; font-weight: 600;
}
.auth-footer a:hover { color: var(--primary-dark); }

/* Error */
.alert-error {
    padding: 0.85rem 1rem; border-radius: 12px;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
    color: var(--danger); font-size: 0.85rem; font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.alert-success {
    padding: 0.85rem 1rem; border-radius: 12px;
    background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
    color: var(--success); font-size: 0.85rem; font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .auth-brand { display: none; }
    .auth-form-panel { padding: 2rem 1.5rem; }
    .auth-form-header .mobile-logo { display: block; }
}

/* Mobile Logo Fixes */
@media (max-width: 768px) {
    .mobile-logo img { height: 32px !important; }
    .mobile-logo { font-size: 1.25rem !important; }
}
/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-form-wrapper {
    animation: slideUp 0.6s ease forwards;
}
.brand-feature {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}
.brand-feature:nth-child(1) { animation-delay: 0.2s; }
.brand-feature:nth-child(2) { animation-delay: 0.35s; }
.brand-feature:nth-child(3) { animation-delay: 0.5s; }
.brand-feature:nth-child(4) { animation-delay: 0.65s; }
