/* --- MODULE: AUTHENTICATION (auth-) --- */

/* 1. RESET CƠ BẢN (QUAN TRỌNG) */
* {
    box-sizing: border-box;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Google Sans Flex', sans-serif;
    overflow: hidden;
    background: #fff;
}

/* 2. CỘT TRÁI (HÌNH ẢNH) */
.auth-left {
    flex: 1.5;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.auth-brand {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 90px;
    height: auto;
    border-radius: 8px;
    font-size: 28px;
    font-weight: 800;
    color: #2563eb;
    z-index: 10;
}

.auth-illustration {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(37, 99, 235, 0.15));
    animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 3. CỘT PHẢI (FORM) */
.auth-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    position: relative;
    z-index: 2;
    box-shadow: -10px 0 30px rgba(0,0,0,0.02);
}

.auth-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* Tiêu đề */
.auth-title {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 35px;
    font-weight: 500;
}

/* --- FIX LỖI INPUT TẠI ĐÂY --- */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    padding-right: 45px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
}

/* Hiệu ứng khi bấm vào input */
.auth-input:focus {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.auth-toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
    padding: 5px;
}

.auth-toggle-pass:hover {
    color: #2563eb;
}

/* Nút đăng nhập */
.auth-btn {
    width: 100%;
    height: 50px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.auth-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.auth-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Đảm bảo form dài không bị mất trên màn hình thấp */
.auth-right {
    overflow-y: auto;
}

/* MOBILE */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-left {
        display: none;
    }
    .auth-right {
        padding: 40px 20px;
        flex: 1;
    }
    .auth-title {
        font-size: 22px;
    }
}
