/* Thiết lập font chữ và reset mặc định */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #eef2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

input{
    height: 40px;
}

/* Khung lớn bọc toàn bộ form */
.login-container {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    min-height: 480px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden; /* Đảm bảo góc bo mượt mà */
    margin-bottom: 30px;
}

/* --- PHẦN BÊN TRÁI (SIDEBAR VÀ LOGO) --- */
.login-sidebar {
    flex: 1;
    background: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-right: 1px solid #edf2f7;
}

.logo-area {
    text-align: center;
}

/* Tạo hình chữ V thương hiệu tạm thời bằng CSS */
.v-logo {
    font-size: 42px;
    font-weight: 800;
    color: #0046a3;
    letter-spacing: -2px;
    margin-bottom: 10px;
    transform: scaleX(1.2);
}

.logo-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    font-weight: 500;
}

.illustration-area img {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

/* --- PHẦN BÊN PHẢI (FORM ĐĂNG NHẬP) --- */
.login-form-box {
    flex: 1;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Icon trong ô nhập liệu */
.input-icon, .password-toggle {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}

.input-group-icon .form-control {
    padding-right: 2.5rem;
}

.icon-on-right {
    position: absolute; 
    right: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 5; 
    color: #999;
    cursor: pointer;
}

.input-group-icon .form-label + .form-control + .icon-on-right {
    top: calc(50% + 15px);
}

.mb-3 .icon-on-right {
    top: 50%; 
    transform: translateY(-50%); 
}

/* Ghi nhớ & quên mật khẩu */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 24px;
}

.remember-me {
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot-pass {
    color: #0056cc;
    text-decoration: none;
    font-weight: 500;
}

.forgot-pass:hover {
    text-decoration: underline;
}

/* Nút bấm Đăng Nhập màu xanh hoàng gia sành điệu */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #0046a3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-login:hover {
    background: #00337a;
}

/* Link đăng ký tài khoản */
.register-link {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
    margin-top: 20px;
}

.register-link a {
    color: #0056cc;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* --- FOOTER ĐỒNG BỘ --- */
.login-footer {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
}

.footer-links a {
    color: #0056cc;
    text-decoration: none;
    margin: 0 4px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 6px;
    font-weight: 500;
    color: #475569;
}

/* Responsive cho màn hình điện thoại nhỏ */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .login-sidebar {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        padding: 30px;
    }
    .illustration-area {
        display: none; /* Ẩn bớt ảnh trên mobile cho đỡ chật */
    }
}
