@charset "UTF-8";

/* ==========================================================================
   RESET & NỀN TẢNG CHO CÁC TRANG AUTH (ĐĂNG NHẬP / ĐĂNG KÝ / QUÊN MẬT KHẨU)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #694025;
}

/* KHUNG CHỨA FORM: NẰM GIỮA HEADER VÀ FOOTER, TỰ CO GIÃN ĐẨY FOOTER XUỐNG ĐÁY */
.auth-main-content {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(38, 25, 18, 0.75), rgba(38, 25, 18, 0.88)), url('../../Anh/banner.jpg') center/cover no-repeat;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 300px);
}

/* HỘP FORM AUTH (POSITION RELATIVE - KHÔNG DÙNG ABSOLUTE ĐỂ TRÁNH ĐÈ LÊN FOOTER) */
.auth-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-top: 5px solid #d4a373;
    position: relative;
    margin: 0 auto;
    z-index: 2;
    animation: authCardFadeIn 0.35s ease-out;
}

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

/* Tiêu đề FORM */
.auth-container h2 {
    text-align: center;
    color: #36251c;
    font-size: 24px;
    margin-bottom: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* CÁC THÀNH PHẦN FORM (LABEL, INPUT) */
.auth-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.auth-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: #4a3426;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ebd9cc;
    border-radius: 8px;
    font-size: 14.5px;
    color: #36251c;
    background-color: #fdfbf9;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #6f4e37;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.25);
}

/* NÚT SUBMIT FORM */
.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #6b3816 0%, #36251c 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(54, 37, 28, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

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

/* CHÂN FORM (LIÊN KẾT ĐĂNG KÝ / QUÊN MẬT KHẨU) */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: #8c7e75;
    border-top: 1px solid #f1eae4;
    padding-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-footer a {
    color: #6b3816;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #e67e22;
    text-decoration: underline;
}

/* THÔNG BÁO LỖI VÀ THÀNH CÔNG */
.error-msg {
    background-color: #fde8e8;
    color: #c81e1e;
    padding: 11px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-left: 4px solid #f05252;
    text-align: left;
}

.success-msg {
    background-color: #def7ec;
    color: #03543f;
    padding: 11px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-left: 4px solid #31c48d;
    text-align: left;
}

/* ĐẢM BẢO FOOTER KHÔNG BỊ CO MÓP */
.client-footer-section {
    flex-shrink: 0;
    width: 100%;
}

/* TỐI ƯU GIAO DIỆN TRÊN ĐIỆN THOẠI DI ĐỘNG */
@media (max-width: 576px) {
    .auth-main-content {
        padding: 30px 15px;
        min-height: calc(100vh - 220px);
    }
    .auth-container {
        padding: 26px 18px;
        border-radius: 12px;
    }
    .auth-container h2 {
        font-size: 20px;
    }
}