﻿.login-form-container {
    padding: 12px 100px;
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px; /* Đảm bảo không quá nhỏ */
    max-height: 100%; /* Giữ form không vượt quá giới hạn */
    overflow-y: auto; /* Bật cuộn khi nội dung quá lớn */
    overflow-x: hidden;
}

/* Giảm padding khi màn hình nhỏ hơn 1600px */
@media (max-width: 1600px) {
    .login-form-container {
        padding: 12px 100px;
    }
}

@media (max-width: 1400px) {
    .login-form-container {
        padding: 12px 65px;
    }
}

@media (max-width: 1200px) {
    .login-form-container {
        padding: 12px 25px;
    }
}

@media (max-width: 992px) {
    .login-form-container {
        padding: 12px 10px;
    }
}

@media (max-width: 768px) {
    .login-form-container {
        padding: 12px 5px;
    }
}

body {
    position: relative;
    background: url('/images/login-bg.png') no-repeat center center fixed;
    background-size: cover;
}

    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #00000026; /* Màu đen trong suốt */
        backdrop-filter: blur(5px); /* Làm mờ nền */
        z-index: -1; /* Đưa layer xuống dưới */
    }

.logo-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
}

.img-thumbnail-square {
    height: 100px; /* Chiều cao của hình vuông */
    object-fit: cover; /* Giữ tỉ lệ hình ảnh và cắt để vừa khung */
    display: block;
    margin: auto; /* Canh giữa nếu cần */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Đảm bảo tối thiểu là chiều cao của viewport */
    padding: 75px 0; /* Thêm padding trên dưới để tránh form bị dính vào mép */
}

.login-card {
    height: 75vh;
    width: 80%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0px 0px 11.38px 0px #E6E6E6;
    background-color: #FAFAFA;
    padding: 12px;
}

@media (max-height: 600px) {
    .login-card {
        height: auto;
        min-height: auto; /* Bỏ min-height để không bị giới hạn */
    }
}

.language-select {
    position: absolute;
    right: 25px;
    top: 20px;
    border-radius: 16px;
    padding: 12px 14px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 10px 0px #00000014;
}

    .language-select li {
        list-style: none;
    }

.login-bg-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 24px;
}

.fs-small {
    font-size: 0.9rem !important;
}

.was-validated .form-control:invalid, .form-control.is-invalid {
    background-position: right 35px center;
}

.btn {
    font-weight: 500;
    font-size: 1rem;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-login {
    color: white !important;
    background-color: #ed1c25;
    border: 2px solid #ed1c25;
    box-shadow: 0 4px 10px rgba(237, 28, 37, 0.3);
}

    .btn-login:hover {
        background-color: #c4161e;
        border-color: #c4161e;
        box-shadow: 0 6px 14px rgba(237, 28, 37, 0.5);
    }

    .btn-login:active {
        background-color: #a5121a;
        border-color: #a5121a;
        transform: scale(0.95);
    }

.btn-login-sso {
    color: white !important;
    background-color: #39f;
    border: 2px solid #39f;
    box-shadow: 0 4px 10px #8dbff0;
}

    .btn-login-sso:hover {
        background-color: #0080ff;
        border-color: #0080ff;
        box-shadow: 0 6px 14px #7bbdfe;
    }

    .btn-login-sso:active {
        background-color: #0080ff;
        border-color: #0080ff;
        transform: scale(0.95);
    }

/* Nút đăng ký */
.btn-register {
    color: white !important;
    background-color: #4DAA54;
    border: 2px solid #4DAA54;
    box-shadow: 0 4px 10px rgba(77, 170, 84, 0.3);
}

    .btn-register:hover {
        background-color: #3f8d45;
        border-color: #3f8d45;
        box-shadow: 0 6px 14px rgba(77, 170, 84, 0.5);
    }

    .btn-register:active {
        background-color: #367b3b;
        border-color: #367b3b;
        transform: scale(0.95);
    }

.login-title {
    font-weight: 600;
    font-size: 2.25rem;
    color: #ED1C25;
    text-align: center;
}

.form-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-evenly;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-control {
    height: 50px;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #D9D9D9;
}

.form-label {
    margin-bottom: 0px;
}
