:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-color: #6366f1;
    --border-radius: 20px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.split-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Image/Gradient */
.left-side {
    flex: 1.2;
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(168, 85, 247, 0.8) 100%), 
                url('../images/desert-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    text-decoration: none;
}

.left-content {
    color: white;
}

.left-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 10px;
}

/* Right Side - Form */
.right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-color);
}

.form-card {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.form-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

.form-header a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 42px;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 10;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 6px;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Button Styles */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.2);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Social Buttons */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--input-border);
    z-index: 1;
}

.divider span {
    background: var(--card-bg);
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.social-btns {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: white;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Toast/Flash Messages */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 28px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
    display: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.toast.success { background-color: #10b981; }
.toast.error { background-color: #ef4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Inline Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

/* Responsive */
@media (max-width: 992px) {
    .left-side {
        display: none;
    }
    .right-side {
        flex: 1;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .form-card {
        padding: 30px 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
