﻿/* Tệp CSS tuân thủ Quy tắc 4: UI Isolation cho Đăng Nhập Nhân Viên */

.emplogin-body {
    background-color: #EFEBE9; /* Nền xám nhạt thay vì vàng kem của khách hàng */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.emplogin-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.emplogin-container {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Đổ bóng đậm hơn */
    overflow: hidden;
    min-height: 520px;
}

/* ---------------- Cột Trái (Branding Staff) ---------------- */
.emplogin-brand {
    background-color: #4E342E; /* Nâu sậm đậm chất Admin/Staff phân biệt với Khách */
    width: 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.emplogin-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    background-color: #fff;
}

.emplogin-brand-title {
    color: #fff;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.emplogin-brand-slogan {
    color: #BCAAA4;
    font-size: 1.05rem;
    margin: 0;
}

/* ---------------- Cột Phải (Form) ---------------- */
.emplogin-form-area {
    width: 58%;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emplogin-back-link {
    color: #607D8B; /* Màu xám xanh (Blue Grey) cho Staff */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

    .emplogin-back-link .material-symbols-outlined {
        font-size: 1.2rem;
        margin-right: 6px;
    }

    .emplogin-back-link:hover {
        color: #37474F;
    }

.emplogin-title {
    color: #3E2723;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.emplogin-subtitle {
    color: #757575;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* ---------------- Input Style (Floating Label) ---------------- */
.emplogin-input-group {
    position: relative;
    margin-bottom: 1.8rem;
    display: flex;
    flex-wrap: wrap;
}

.emplogin-input-icon {
    position: absolute;
    left: 12px;
    top: 22px;
    transform: translateY(-50%);
    color: #9E9E9E;
    font-size: 1.3rem;
    z-index: 2;
    pointer-events: none;
}

.emplogin-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    padding: 1.5rem 1rem 0.5rem 2.8rem;
    font-size: 1rem;
    color: #3E2723;
    background-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-radius: 4px 4px 0 0;
    outline: none;
}

.emplogin-label {
    position: absolute;
    left: 2.8rem;
    top: 22px;
    transform: translateY(-50%);
    color: #757575;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: left top;
    margin: 0;
}

.emplogin-input:focus ~ .emplogin-label,
.emplogin-input:not(:placeholder-shown) ~ .emplogin-label {
    top: 10px;
    transform: translateY(0) scale(0.8);
    color: #D84315; /* Focus màu cam đậm cho Staff */
}

.emplogin-input:focus {
    border-bottom: 2px solid #D84315;
    background-color: #FBE9E7; /* Nền hồng/cam nhạt */
}

.emplogin-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #F5F5F5 inset !important;
}

/* ---------------- Buttons ---------------- */
.emplogin-btn-login {
    width: 100%;
    background-color: #4E342E; /* Nâu sậm */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .emplogin-btn-login:hover {
        background-color: #3E2723;
        transform: translateY(-2px);
    }

    .emplogin-btn-login:disabled {
        background-color: #9E9E9E;
        transform: none;
        cursor: not-allowed;
    }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .emplogin-wrapper {
        max-width: 700px;
        padding: 30px 15px;
    }

    .emplogin-container {
        flex-direction: column;
        min-height: auto;
    }

    .emplogin-brand {
        width: 100%;
        padding: 2rem;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .emplogin-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }

    .emplogin-brand-text {
        text-align: left;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }

    .emplogin-brand-title {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .emplogin-form-area {
        width: 100%;
        padding: 3rem 4rem;
    }
}

@media (max-width: 575px) {
    .emplogin-wrapper {
        padding: 15px;
    }

    .emplogin-brand {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }

    .emplogin-brand-text {
        text-align: center;
    }

    .emplogin-logo {
        width: 65px;
        height: 65px;
    }

    .emplogin-brand-title {
        font-size: 1.6rem;
    }

    .emplogin-form-area {
        padding: 2rem 1.5rem;
    }

    .emplogin-title {
        font-size: 1.8rem;
    }
}
