﻿
/* HOSX Login Style - 100% Exact Clone */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #4c63d2, #7c3aed, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Inter', sans-serif;
}

/* Keyframe animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bubble1 {
    0% {
        transform: translateY(100vh) translateX(-50px) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) translateX(50px) scale(1);
        opacity: 0;
    }
}

@keyframes bubble2 {
    0% {
        transform: translateY(100vh) translateX(50px) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-15vh) translateX(-30px) scale(1.2);
        opacity: 0;
    }
}

@keyframes bubble3 {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-25vh) translateX(100px) scale(0.8);
        opacity: 0;
    }
}

@keyframes bubble4 {
    0% {
        transform: translateY(100vh) translateX(-100px) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-18vh) translateX(80px) scale(1.5);
        opacity: 0;
    }
}

@keyframes bubble5 {
    0% {
        transform: translateY(100vh) translateX(150px) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-22vh) translateX(-80px) scale(1.1);
        opacity: 0;
    }
}

/* Floating bubbles using pseudo-elements */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 70%, transparent 100%);
    border-radius: 50%;
    animation: bubble1 12s infinite linear;
    animation-delay: 0s;
    animation-fill-mode: backwards;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 85%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.06) 70%, transparent 100%);
    border-radius: 50%;
    animation: bubble2 15s infinite linear;
    animation-delay: 5s;
    animation-fill-mode: backwards;
}

/* Main container */
.main-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}


/* Form styles */
.form-group {
    margin-bottom: 24px;
}

.field-label {
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    display: block;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    color: #a0aec0;
    font-size: 18px;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

    .form-input:hover {
        background-color: #f1f5f9;
        border-color: #cbd5e0;
    }

    .form-input:focus {
        outline: none;
        background-color: #fff;
        border-color: #4c63d2;
        box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.1);
    }

    .form-input::placeholder {
        color: #a0aec0;
        opacity: 1;
    }

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    font-size: 16px;
    z-index: 2;
    padding: 4px;
}

.checkbox-row {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    margin-right: 8px;
    color: #cbd5e0;
}

    .checkbox-input:checked {
        color: #4c63d2;
    }

.checkbox-text {
    font-size: 0.9rem;
    color: #718096;
    font-family: 'Inter', sans-serif;
}

.forgot-link {
    font-size: 0.9rem;
    color: #4c63d2;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.login-button {
    width: 100%;
    min-height: 52px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4c63d2 0%, #7c3aed 100%);
    color: white;
    border: none;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(76, 99, 210, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .login-button:hover {
        background: linear-gradient(135deg, #3b52c7 0%, #6d28d9 100%);
        box-shadow: 0 6px 16px rgba(76, 99, 210, 0.4);
        transform: translateY(-1px);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button:disabled {
        background: #e2e8f0;
        color: #94a3b8;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }

.button-text {
    display: inline;
}

.button-loading {
    display: none;
}

.error-alert {
    margin-bottom: 24px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #4c63d2; 
}

    .contact-icon:hover {
        opacity: 0.7;
    }

    .contact-icon.phone {
        background-color: #4c63d2;
    }

    .contact-icon.website {
        background-color: #4c63d2;
    }

    .contact-icon.zalo {
        background-color: #0068ff;
    }

    .contact-icon.facebook {
        background-color: #1877f2;
    }

    .contact-icon.youtube {
        background-color: #ff0000;
    }

    .contact-icon i {
        font-size: 16px;
        color: white;
    }

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.language-button {
    border-radius: 12px;
    padding: 8px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

    .language-button:hover {
        background-color: #f1f5f9;
        border: 1px solid #cbd5e1;
    }

.flag-icon {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

.language-text {
    font-size: 0.85rem;
    color: #64748b;
}

.language-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
    margin-top: 4px;
}

    .language-menu.show {
        display: block;
    }

.language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

    .language-item:hover {
        background-color: #f8fafc;
    }

/* Copyright */
.copyright {
    text-align: center;
}

    .copyright p {
        color: #a0aec0;
        font-size: 0.75rem;
        font-family: 'Inter', sans-serif;
    }


.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Left Panel */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    color: white;
    background: linear-gradient(135deg, #4c63d2 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.left-panel-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.left-panel-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container-mobile{
    display: none;
}
.desktop-logo {
    width: 150px;
    box-shadow: 0 12px 48px rgba(76, 99, 210, 0.4);
    backdrop-filter: blur(15px);
    padding: 20px;
    transition: all 0.3s ease;
}

.main-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.subtitle {
    margin-bottom: 48px;
    opacity: 0.9;
    font-weight: 400;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

/* Feature Cards */
.feature-cards {
    margin-bottom: 32px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
}

    .feature-card:last-child {
        margin-bottom: 0;
    }

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

    .feature-icon i {
        color: white;
        font-size: 20px;
    }

.feature-content {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.feature-description {
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* Right Panel */
.right-panel {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #ffffff;
}

.form-container {
    width: 100%;
    max-width: 360px;
}

.form-title {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    text-align: left;
    font-size: 1.75rem;
    font-family: 'Inter', sans-serif;
}

.form-subtitle {
    color: #718096;
    margin-bottom: 32px;
    text-align: left;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* Footer Contact */
.footer-contact {
    text-align: center;
}

    .footer-contact .contact-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin: 16px 0;
        flex-wrap: wrap;
    }

    .footer-contact .contact-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: #4c63d2;
    }

        .footer-contact .contact-icon:hover {
            opacity: 0.7;
        }

        .footer-contact .contact-icon.phone {
            background-color: #4c63d2;
        }

        .footer-contact .contact-icon.website {
            background-color: #4c63d2;
        }

        .footer-contact .contact-icon.zalo {
            background-color: #0068ff;
        }

        .footer-contact .contact-icon.facebook {
            background-color: #1877f2;
        }

        .footer-contact .contact-icon.youtube {
            background-color: #ff0000;
        }

        .footer-contact .contact-icon i {
            font-size: 16px;
            color: white;
        }

    .footer-contact .language-selector {
        display: flex;
        justify-content: center;
        margin-bottom: 16px;
    }

    .footer-contact .language-button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 20px;
        background-color: #f5f5f5;
        cursor: pointer;
        border: none;
        font-size: 0.85rem;
    }

        .footer-contact .language-button:hover {
            background-color: #e0e0e0;
        }

    .footer-contact .language-text {
        font-size: 0.85rem;
        color: #666;
    }


@media (max-width: 768px) {
    .left-panel{
        display: none;
    }
    .right-panel{
        width: 100%;
        padding: 20px;
    }
    .form-title{
        text-align: center;
    }
    .logo-container-mobile{
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    .logo-container-mobile
    .desktop-logo {
        width: 100px;
        padding: 20px;
        transition: all 0.3s ease;
        box-shadow: none;
    }
    form {
        width: 100%;
        padding:15px;
    }
}

#list_lang {
    height: 100px;
    overflow-y: auto;
}

