/* GomSuViet_Project/dangnhap.css */

/* Class này sẽ được thêm vào thẻ <body> của trang dangnhap.html và dangky.html */
.auth-page-background {
    background-color: var(--secondary-color); /* Nền nhẹ nhàng hơn cho trang auth */
    /* Hoặc có thể dùng ảnh nền:
    background-image: url('../png/auth_background.jpg');
    background-size: cover;
    background-position: center;
    */
}

.auth-top-bar {
    background-color: rgba(0,0,0,0.1); /* Thanh top bar mờ hơn */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.auth-top-bar a {
    color: var(--primary-color); /* Màu chữ dễ đọc hơn trên nền sáng */
}
.auth-top-bar .back-to-home-link {
    font-weight: bold;
}

.auth-header {
    background-color: transparent; /* Header không có nền riêng */
    border-bottom: none;
    box-shadow: none;
    padding: 30px 0;
}
.auth-header .logo {
    text-align: center; /* Logo ra giữa */
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Căn form ra giữa theo chiều dọc */
    padding: 30px 15px; /* Padding cho container chính */
    min-height: calc(100vh - 150px); /* (Chiều cao màn hình - chiều cao header và footer ước tính) */
}

.auth-form-wrapper {
    background-color: var(--white-color);
    max-width: 450px;
    width: 100%;
    padding: 30px 35px 40px; /* Thêm padding bottom */
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
}

.auth-form-wrapper h2 {
    text-align: center;
    font-size: 1.9em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* .form-group đã được style trong styles.css */
/* Thêm style riêng nếu cần */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    margin-bottom: 20px;
}
.remember-me {
    display: flex;
    align-items: center;
    color: #555;
}
.remember-me input[type="checkbox"] {
    width: auto; /* Checkbox không chiếm full width */
    margin-right: 8px;
    transform: scale(1.1); /* Làm checkbox to hơn chút */
}
.forgot-password-link {
    color: var(--accent-color);
}
.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-submit-auth {
    /* Đã có style chung từ button[type="submit"] trong styles.css */
    width: 100%; /* Nút chiếm toàn bộ chiều rộng form */
    padding: 14px 20px;
    font-size: 1.05em;
    margin-top: 10px; /* Thêm khoảng cách nếu có form-options */
}

.social-login-divider {
    text-align: center;
    margin: 25px 0;
    font-size: 0.9em;
    color: #777;
    position: relative;
}
.social-login-divider span {
    background-color: var(--white-color);
    padding: 0 10px;
    position: relative;
    z-index: 1;
}
.social-login-divider::before { /* Đường kẻ */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 0;
}

.social-login-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.btn-social-google, .btn-social-facebook {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--white-color);
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-social-google:hover { background-color: #f5f5f5; border-color: #ccc; }
.btn-social-facebook:hover { background-color: #e9ebee; border-color: #ccc; }
.btn-social-google img, .btn-social-facebook img {
    height: 20px;
    width: 20px;
}

.auth-switch-text {
    text-align: center;
    font-size: 0.95em;
    color: #555;
}
.auth-switch-text a {
    font-weight: bold;
    color: var(--accent-color);
}

.terms-agreement {
    font-size: 0.9em;
    color: #555;
}
.terms-agreement input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle; /* Căn checkbox với text */
}
.terms-agreement .inline-label { /* Label cho checkbox đồng ý điều khoản */
    display: inline;
    font-weight: normal;
}
.terms-agreement a {
    color: var(--accent-color);
    text-decoration: underline;
}

.auth-footer {
    background-color: transparent;
    color: var(--text-color); /* Hoặc var(--primary-color) */
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.auth-footer .footer-bottom p {
    color: #666; /* Màu chữ nhẹ hơn cho footer trang auth */
}

/* Responsive for Auth Pages */
@media (max-width: 576px) {
    .auth-form-wrapper {
        padding: 25px 20px 30px;
    }
    .auth-form-wrapper h2 {
        font-size: 1.6em;
    }
    .social-login-buttons {
        flex-direction: column; /* Nút social xếp chồng */
    }
}