/* css/auth.css */

/* 1. SETUP & VARIABLES */
:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-input: #f8fafc;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; height: 100vh; overflow: hidden; }
a { text-decoration: none; color: var(--accent); font-weight: 500; transition: 0.3s; }
a:hover { color: #2563eb; text-decoration: underline; }

/* 2. LAYOUT CHIA ĐÔI */
.auth-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Cột trái: Ảnh & Branding */
.auth-side-image {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
    position: relative;
}
/* Họa tiết nền */
.auth-side-image::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1614064641938-3bbee52942c7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover; background-position: center;
    opacity: 0.1; /* Làm mờ ảnh nền */
}

.auth-quote { position: relative; z-index: 2; max-width: 480px; }
.auth-quote h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.auth-quote p { font-size: 16px; color: #cbd5e1; line-height: 1.6; }

/* Cột phải: Form */
.auth-form-container {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.auth-box { width: 100%; max-width: 400px; }

/* 3. FORM ELEMENTS */
.logo { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 30px; display: inline-flex; align-items: center; gap: 10px; }
.auth-title { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.auth-subtitle { color: var(--text-light); margin-bottom: 30px; font-size: 15px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}
.form-input:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-auth:hover { background: #2563eb; transform: translateY(-2px); }

/* 4. UTILS */
.form-footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--text-light); }
.divider { display: flex; align-items: center; margin: 30px 0; color: #94a3b8; font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.divider span { padding: 0 10px; }

.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px; border: 1px solid var(--border); border-radius: 8px;
    background: white; color: var(--text-dark); font-weight: 500; cursor: pointer; transition: 0.2s;
}
.btn-social:hover { background: #f8fafc; border-color: #cbd5e1; }

.check-group { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-light); }

/* Responsive Mobile */
@media (max-width: 900px) {
    .auth-side-image { display: none; }
    .auth-form-container { padding: 20px; }
}

/* 5. NOTIFICATION MODAL */
.notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notification-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.notification-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.notification-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.notification-content p strong {
    color: var(--text-dark);
    font-weight: 600;
}

.notification-content .btn-primary {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.notification-content .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
