/* --- BIẾN MÀU SẮC --- */
:root {
    --primary: #f6921e;
    --primary-dark: #d37b15;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --text-main: #333;
    --text-muted: #666;
    --danger: #e74c3c;
    --success: #2ecc71;
    --shadow: 0 10px 30px rgba(246, 146, 30, 0.15);
}

body {
    background-color: #fffbf5; /* Nền cam rất nhạt */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bar {
    width: 100%;
}

/* --- CONTAINER & CARD --- */
.auth-container {
    width: 100%;
    max-width: 500px; /* Mặc định cho login/forgot */
}

.auth-container.wide {
    max-width: 800px; /* Rộng hơn cho trang Register */
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(246, 146, 30, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--primary);
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p { color: var(--text-muted); font-size: 14px; }

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(246, 146, 30, 0.1);
}

/* Dropdown & Phone Input Group */
.input-group { display: flex; gap: 10px; }
.input-group select { width: 120px; flex-shrink: 0; }

/* Grid cho Register (2 cột) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; gap: 0; } }

/* --- BUTTONS --- */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(246, 146, 30, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.btn-link {
    background: none;
    color: var(--primary);
    font-weight: 600;
    margin-top: 15px;
    font-size: 14px;
}
.btn-link:hover { text-decoration: underline; }

/* --- ALERTS --- */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none; /* Mặc định ẩn */
}
.alert.visible { display: block; animation: fadeIn 0.5s; }
.alert-danger { background: #fde8e8; color: var(--danger); border: 1px solid #fad2d2; }
.alert-success { background: #eafaf1; color: var(--success); border: 1px solid #d5f5e3; }

/* --- ICON BOX (Cho trang Verify) --- */
.icon-box { font-size: 80px; margin-bottom: 20px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }