/* CSS cho form login admin */
.admin-session {
    width: 800px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 6px -1px rgba(0,0,0,0.12);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: adminFadeInUp 0.5s ease-out forwards;
    display: flex;
}


.admin-layout {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f3f2f2 0%, #e6e9f0 100%);
    padding: 20px;
}

/* Animation hiện form */
@keyframes adminFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel bên trái */
.admin-left {
    width: 220px;
    min-height: 100%;
    position: relative;
    background: linear-gradient(135deg, rgba(58,123,213,1) 0%, rgba(0,210,255,1) 100%);
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hiệu ứng xoay logo */
.admin-left svg {
    height: 40px;
    width: auto;
    animation: adminSpin 20s linear infinite;
}

@keyframes adminSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form đăng nhập */
.admin-log-in {
    padding: 40px 30px;
    background: #fefefe;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 320px;
}

.admin-log-in h4 {
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 24px;
}

.admin-log-in h4 span {
    color: #0c7de6;
    font-weight: 700;
}

/* Input fields */
.admin-floating-label {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.admin-floating-label input {
    width: 100%;
    padding: 20px 15px 20px 44px;
    border: none;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    background: transparent;
    transition: all 0.3s ease;
    font-size: 16px;
}

.admin-floating-label input:focus {
    border-bottom: 2px solid #0c7de6;
    box-shadow: 0 2px 6px -4px rgba(0,210,255,0.5);
}

/* Icons trong input */
.admin-floating-label .admin-icon {
    position: absolute;
    left: 0;
    top: 15px;
    width: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-floating-label .admin-icon i {
    font-size: 20px;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: #051922;
}

.admin-floating-label input:focus ~ .admin-icon i {
    opacity: 1;
    color: #0c7de6;
}

/* Button đăng nhập */
.admin-log-in button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, rgba(58,123,213,1) 0%, rgba(0,210,255,1) 100%);
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.admin-log-in button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,210,255,0.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .admin-session {
        flex-direction: column;
        width: 90%;
        margin: 20px auto;
    }

    .admin-left {
        width: 100%;
        min-height: 120px;
        border-radius: 15px 15px 0 0;
    }

    .admin-log-in {
        width: 100%;
        min-width: unset;
    }
}

/* Background cho body khi ở trang admin */
.admin-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f3f2f2 0%, #e6e9f0 100%);
    padding: 20px;
}
