:root {
    --primary-color: #1a237e;
    --accent-color: #3949ab;
    --success: #2e7d32;
    --error: #c62828;
    --text-dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background: #f4f7f6; display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.container {
    display: flex;
    width: 900px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 550px;
}

@media (max-width: 768px) {
    .container { flex-direction: column; width: 95%; }
    .branding-side { min-height: 200px; }
}

.branding-side {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1541339907198-e08756ebafe3?auto=format&fit=crop&q=80&w=1000') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    text-align: center;
}

.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 35, 126, 0.8); }

.content { position: relative; z-index: 1; }

.form-side { flex: 1.2; padding: 40px; display: flex; flex-direction: column; justify-content: center; }

h2 { color: var(--primary-color); margin-bottom: 8px; }
.subtitle { color: #666; font-size: 0.9rem; margin-bottom: 25px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.85rem; color: #555; }
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: 0.3s;
}
.input-group input:focus { border-color: var(--accent-color); box-shadow: 0 0 5px rgba(57, 73, 171, 0.2); }

.show-password-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

.show-password-container input { width: auto; cursor: pointer; }

.password-hint {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 5px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-primary:hover { background: var(--accent-color); }

.btn-secondary {
    margin-top: 20px;
    padding: 10px 20px;
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.hidden { display: none; }
.toggle-text { margin-top: 20px; font-size: 0.85rem; text-align: center; }
.toggle-text a { color: var(--accent-color); text-decoration: none; font-weight: 600; }

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    display: none;
}
.success { display: block; background: #e8f5e9; color: var(--success); }
.error { display: block; background: #ffebee; color: var(--error); }

.disclaimer { margin-top: 30px; font-size: 0.7rem; color: #999; text-align: center; font-style: italic; }

.user-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.badge {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}