/* CSS cho form đăng nhập */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f7f9fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow-x: hidden;
}

.parallelogram-center {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4776E6 0%);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0 100%);
    z-index: -1;
}

.parallelogram-left, .parallelogram-right {
    display: none;
}

.home_bg {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.home_bg .row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.home_bg .col-sm-12 {
    display: flex;
    justify-content: center;
    padding: 0;
}

.avatar-container {
    width: 560px;
    height: 270px;
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.avatar-container img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.login-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px 40px 20px;
    margin-top: 0;
}

.login-section .form.login {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 35px 30px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
}

.login-section label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #666;
}

.login-section .hidden {
    display: none;
}

.login-section .login-input-container {
    margin-bottom: 20px;
    position: relative;
}

.login-section .login-input-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.login-section .login-input-container:first-of-type::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.login-section .login-input-container:nth-of-type(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

.login-section .form__input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.login-section .form__input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    background-color: #fff;
}

.login-section .login-actions-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.login-section .form__field--submit {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-section .div-alert {
    margin-top: 20px;
    border-radius: 8px;
    padding: 12px 15px;
    position: relative;
    background-color: #f8f9fa;
    border-left: 4px solid #4a90e2;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-section .message {
    font-size: 14px;
    color: #555;
}

.login-section .close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #777;
}

.login-section .close:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .login-section .form.login {
        width: 90%;
        padding: 30px 25px;
    }
    
    .avatar-container {
        width: 320px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 0 15px 30px 15px;
    }
    
    .login-section .form.login {
        width: 95%;
        padding: 25px 20px;
    }
    
    .avatar-container {
        width: 280px;
        height: 180px;
    }
    
    .home_bg {
        padding: 30px 0;
    }
}

@media (max-height: 700px) {
    .home_bg {
        padding: 20px 0;
    }

    .avatar-container {
        padding-top:20px;
        width: 560px;
        height: 270px;
    }
    
    .login-section .form.login {
        padding: 25px 20px;
    }
} 