﻿/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'UTM Horizon'; /* Bạn có thể tự đặt tên này để gọi về sau */
}

body {
    background-color: #f7f9f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main {
    width: 100%;
    max-width: 900px;
}

/* CARD CONTAINER */
.card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(176, 180, 53, 0.15);
    overflow: hidden;
    min-height: 500px;
}

/* LEFT SIDE (HÌNH ẢNH) */
.left {
    flex: 1;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('/images/banner-01.jpg') center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

    .left h1 {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 15px;
    }

    .left p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
        color: #e0e0e0;
    }

.outline-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

    .outline-btn:hover {
        background: #fff;
        color: #b0b435;
    }

/* RIGHT SIDE (FORM ĐĂNG NHẬP) */
.right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .right h2 {
        font-size: 28px;
        font-weight: 800;
        color: #333;
        margin-bottom: 30px;
        text-align: center;
    }

/* FORM ELEMENTS */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 15px 20px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        font-size: 15px;
        color: #333;
        outline: none;
        transition: all 0.3s ease;
    }

        .input-group input:focus {
            border-color: #b0b435;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(176, 180, 53, 0.1);
        }

/* Mật khẩu & Nút xem mật khẩu */
.password-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

    .password-box i:hover {
        color: #b0b435;
    }

/* Dòng Ghi nhớ & Quên mật khẩu */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #555;
    font-weight: 600;
}

    .remember-me input {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        accent-color: #b0b435;
        cursor: pointer;
    }

.forgot-link {
    color: #b0b435;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

    .forgot-link:hover {
        color: #000;
    }

/* Nút Submit */
.primary-btn {
    width: 100%;
    padding: 15px;
    background: #b0b435;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .primary-btn:hover {
        background: #9a9e2e;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(176, 180, 53, 0.3);
    }

/* Thông báo lỗi */
.error-msg {
    background: #ffeeee;
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-left: 4px solid #e74c3c;
}

/* RESPONSIVE CHO ĐIỆN THOẠI */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
    }

    .left {
        padding: 40px 20px;
    }

    .right {
        padding: 40px 20px;
    }
}
