/* ================================================
   STYLE-1.CSS - Trang Đăng Nhập & Đăng Ký
   ================================================ */

/* === CÀI ĐẶT CHUNG === */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #efffd5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

li { list-style: none; }

/* === LOGO GÓC TRÊN TRÁI === */
.container {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
}

.logo {
    font-size: 15px;
    padding: 8px 14px;
    background-color: rgb(255, 255, 255); 
    color: #333333;
    border: 2px solid #AD6D15; 
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(200, 100, 15, 0.2);
}

.logo:hover {
    background-color: #AD6D15; /* Cobre */
    color: #FBF5D2;
    transform: scale(1.05);
}

/* === KHUNG CHÍNH CHIA 2 CỘT === */
.login-container,
.signup-container {
    background: white;
    width: 820px;
    max-width: 92%;
    min-height: 480px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(139, 58, 15, 0.18);
    display: flex;
    overflow: hidden;
    border: 1px solid #f5d8a0;
}

/* === CỘT TRÁI: HÌNH ẢNH === */
.image-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    overflow: hidden;
}

.image-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Phóng to ảnh phủ kín vùng chứa mà không bị méo tỉ lệ */
    z-index: 0; /* Đặt ảnh dưới cùng */
}

.overlay-text {
    width: 100%;
    padding: 28px 20px;
    background: linear-gradient(to top, rgba(80, 30, 0, 0.88), transparent);
    color: white;
    text-align: center;
    z-index: 1; /* Nâng phần text hiển thị lên trên thẻ img */
}

.overlay-text h1 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
}

.overlay-text p {
    margin: 0;
    font-size: 0.87rem;
    opacity: 0.92;
}

/* === CỘT PHẢI: FORM === */
.form-container {
    flex: 1;
    padding: 30px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.form-container h2 {
    color: #333333;
    text-align: center;
    margin-bottom: 22px;
    font-size: 1.5rem;
}

/* === CÁC Ô NHẬP LIỆU === */
.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #333333;        
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #AD6D15;  /* Cobre */
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    font-size: 14px;
    color: #333;
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* Khi click vào ô nhập */
.input-group input:focus {
    border-color: #f9e106;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.18);
}

.input-group input::placeholder {
    color: #bbb;
    font-size: 13px;
}

/* === GHI NHỚ ĐĂNG NHẬP === */
.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #333333;
    margin-bottom: 18px;
}

.remember-me input[type="checkbox"] {
    accent-color: #f9e106; 
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* === NÚT BẤM === */
.button-container {
    text-align: center;
    margin-bottom: 5px;
}

.submit-button {
    background-color: #f9e106;  
    border: none;
    padding: 10px 42px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.3s, transform 0.15s;
}

.submit-button:hover {
    background-color: #e6b800;  
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0px);
}

/* === LINK CHUYỂN TRANG === */
.switch-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #666;
}

.switch-link a {
    color: #e6b800;         
    text-decoration: none;
    font-weight: 600;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* === THÔNG BÁO LỖI / THÀNH CÔNG === */
.error-message {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
    font-weight: 500;
}

/* === RESPONSIVE: MÀN HÌNH ĐIỆN THOẠI === */
@media (max-width: 600px) {
    .login-container,
    .signup-container {
        flex-direction: column;
        min-height: unset;
        max-width: 96%;
    }

    .image-section {
        min-height: 160px;
        flex: none;
    }

    .form-container {
        padding: 22px 20px;
    }
}
