:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --white: #ffffff;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    background-color: var(--light);
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Left Side - Visual */
.auth-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://placehold.co/1920x1080/2563eb/ffffff?text=Background') center/cover;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.auth-content-visual {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
}

.auth-content-visual h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.auth-content-visual p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Right Side - Form */
.auth-form-container {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: white;
    position: relative;
}

.auth-header {
    margin-bottom: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fee2e2;
}

.alert-success {
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #d1fae5;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-visual {
        display: none;
    }
    
    .auth-form-container {
        flex: 1;
        width: 100%;
        padding: 40px 20px;
    }
}
