* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to top,
            rgb(30, 67, 97) 0%,
            rgba(70, 110, 140, 0.9) 25%,
            rgba(160, 190, 215, 0.5) 60%,
            #ffffff 100%);
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 20px 0;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loader .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #004b6b;
    margin: 0 2px;
    animation: dot-flashing 1.4s infinite alternate;
}

.loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-flashing {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

.main-container {
    width: 100%;
    max-width: 900px;
    margin-top: 5%;
    margin-bottom: 5%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    min-height: 450px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgb(197 210 216 / 0%), rgb(174 209 239 / 0%));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.form-section {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    width: 80%;
    margin-bottom: 10px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #004b6b;
    margin-bottom: 8px;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.form-input {
    width: 100%;
    height: 44px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #004b6b;
    box-shadow: 0 0 0 3px rgba(0, 75, 107, 0.1);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -6px;
    left: 10px;
    font-size: 11px;
    color: #004b6b;
    font-weight: 600;
}

.remember-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #004b6b;
}

.remember-label {
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #004b6b 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 75, 107, 0.3);
    transition: all 0.2s ease-in-out;
    position: relative;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 75, 107, 0.4);
}

.submit-button:active {
    top: 2px;
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 75, 107, 0.2);
}

.form-links {
    text-align: center;
}

.form-link {
    color: #004b6b;
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px;
}

.form-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.footer-links {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.footer-text {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    color: #004b6b;
    text-decoration: none;
    font-size: 12px;
}

.social-link:hover {
    color: #0066cc;
}

footer.sc-ifAKCX {
    position: fixed;
    z-index: 100;
    width: 100%;
    bottom: 0;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 0;
    text-align: center;
    margin-top: 10px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to right, rgb(23, 52, 77), var(--primary-color), rgb(23, 52, 77));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer.sc-ifAKCX a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 2px;
}

footer.sc-ifAKCX a:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

footer.sc-ifAKCX a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

footer.sc-ifAKCX a:hover:after {
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        margin: 10px;
        max-width: 100%;
        min-height: 400px;
    }

    .image-section {
        min-height: 150px;
    }

    .form-section {
        padding: 30px 25px;
    }

    .form-title {
        font-size: 1.4rem;
    }
}

/* eroreror */
.ajax-error,
.alert-success {
    position: fixed;
    top: 35%;
    z-index: 50;
    color: white;
    padding: 12px 20px;
    max-width: 450px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-in-out;
}

.alert-success {
    background-color: rgba(42, 157, 143, 0.95);
}

.ajax-error ul,
.alert-success ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.ajax-error ul li {
    padding: 6px 10px;
    background: #d16330;
    margin-bottom: 4px;
    box-shadow: 1px 1px 2px gray;
}

.alert-success ul li {
    padding: 6px 10px;
    background: #43eb91;
    margin-bottom: 4px;
    box-shadow: 1px 1px 2px gray;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* men header */
.dropdown-menu-custom {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(to right, rgba(25, 55, 85, 0.95), rgba(45, 85, 125, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    width: 200px;
    min-height: 120px;
    text-align: center;
    display: none;
}

.dropdown-menu-custom a {
    display: block;
    padding: 10px 0;
    color: #000;
    text-decoration: none;
    box-shadow: 0px 1px 3px 1px #f1f1f1;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu-custom a:hover {
    background: linear-gradient(to right, rgba(25, 55, 85, 0.95), rgba(45, 85, 125, 0.9));
    border-radius: 4px;
}

.dropdown-menu-custom a:active {
    transform: translateY(1px);
}

.dropdown-menu-custom a.fade {
    box-shadow: none;
    border: none;
    opacity: 1 !important;
}

#loginMenu,
#signupMenu {
    border: 2px solid #45768f;
    box-shadow: 0px 4px 8px 5px #a7cae53d;
}

#loginMenu a:hover,
#signupMenu a:hover {
    box-shadow: 1px 1px 4px 2px #7396a9 !important;
    border: 2px solid #7396a9 !important;
    border-radius: 4px;
}

.site-header {
    position: fixed;
    z-index: 100;
    width: 100%;
    background: linear-gradient(to right, rgba(25, 55, 85, 0.95), rgba(45, 85, 125, 0.9));
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-language {
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-language:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-container .header-ul {
    display: flex;
    list-style: none;
    justify-content: space-between;
    margin: 0;
}

.header-ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    /* Thêm transition cho mượt mà */
    position: relative;
    /* Cần để có thể dịch chuyển */
}

.header-ul li a:hover,
.header-ul li a:focus {
    color: #fff;
    text-shadow: 1px -1px 1px #d5dfe5;
}

.header-ul li a:active {
    transform: translateY(2px);
    text-shadow: 0px -1px 1px #d5dfe5;
}
#mobileMenu, .mobile-menu-toggle {
    display: none !important;
}
/* responsive cho kích thước mmobile  */
@media (max-width: 432px) {
    .mobi-none {display: none !important;}
    .site-header {padding: 5px 0;}
    .header-ul li a {font-size: 14px;}
    .dropdown-menu-custom {width: 130px;min-height: 80px;}
    .dropdown-menu-custom a {font-size: 12px !important;padding: 5px 0;}
    .header-container .header-ul {padding: 0; align-items: center;}
    .mobile-menu-toggle {display: block !important;}
    #mobileMenu {display: block !important;}
    .mobile-slide-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top,
        #ffffff 0%,
        rgba(160, 190, 215, 0.5) 40%,
        rgba(70, 110, 140, 0.9) 75%,
        rgb(30, 67, 97) 100%);
        z-index: 300;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    }
    .mobile-slide-menu.active {right: 0;}
    .mobile-slide-menu ul {list-style: none;padding: 0;}
    .mobile-slide-menu ul li a {
        display: block; 
        width: 100%;
        text-decoration: none;
        color: #fff;
    }
    .mobile-slide-menu li {
        position: relative;
        padding: 0;
        padding: 12px;
        border: 1px solid #dce7f0;
    }
    .mobile-slide-menu li:hover{box-shadow: inset 1px 2px 3px 6px #a6c5e2;}
    .mobile-slide-menu li:hover a {font-weight: 600;text-shadow: 2px 2px black;}
    .main-container {margin-top: 12% !important;margin-bottom: 16% !important;}
    .welcome-text {font-size: 24px;}
    /*  validate  */
    .ajax-error, .alert-success {
        left: auto !important;
        top: 13% !important;
        right: 0;
        max-width: 360px;
     }
}
