

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
}

/* Animated Gradient Background */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-toggle {
    position: relative;
    display: inline-block;
}

.language-circle.main-globe {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1.25rem;
    color: #333;
}

.language-circle.main-globe:hover {
    border-color: #1a7cc4;
    transform: scale(1.1);
}

.globe-icon {
    color: #1a7cc4 !important;
}

.language-indicator {
    position: absolute;
    bottom: 9px;
    right: -9px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}


.emotion-mode-logo {
    margin-top: 2rem;
}

.emotion-mode-logo strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;  
}

.form-control, .single-line {
    border-radius: 2rem;
}

.language-switcher {
    right: 3rem;
}

.language-circle.main-globe {
    background-color: white;
}

.language-indicator {
    background-color: white;
    width: 30px;
    height: 30px;
    bottom: 4px;
    right: -28px;
    user-select: none;
}

/* Desktop Layout (≥1200px) */
@media (min-width: 1200px) {

    .login-form-card {
        color: #676A6C;
    }

    .login-container {
        min-height: 100vh;
    }
    .left-section {
        background: linear-gradient(
            120deg, 
            #0b3553 5%, 
            #0e4369 10%, 
            #115180 30%, 
            #146097 40%, 
            #176ead 50%, 
            #1a7cc4 75%, 
            #1d8abd 100%
        );
        background-size: 400% 400%;
        animation: gradientShift 8s ease-in-out infinite;
        padding: 3rem;
        color: white;
        position: relative;
        overflow: hidden;
        min-height: 100vh;
    }

    .background-content {
        z-index: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .login-form-card {
        background: white;
        border-radius: 12px;
        padding: 0 2.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        max-width: 500px;
        width: 100%;
        min-height: 450px;
        max-height: 600px;
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .left-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
        pointer-events: none;
    }
    .background-content img {
        max-width: 280px;
        height: auto;
        animation: fadeInUp 1s ease-out 0.3s both;
    }

    .background-content .welcome-text {
        user-select: none;
        font-weight: 300;
        text-align: center;
        line-height: 1.2;
        margin-top: 2rem;
        animation: fadeInUp 1.2s ease-out 0.5s both;
    }

    .background-content .emotion-mode-logo {
        animation: fadeInUp 1s ease-out 0.7s both;
    }

    .login-form-card {
        animation: fadeInUp 1.4s ease-out 0.9s both;
    }
    .mobile-only {
        display: none;
    }
}

.welcome-form-text {
    user-select: none;
}

/* Mobile Layout (≤1199px) */
@media (max-width: 1199px) {
    .desktop-only {
        display: none;
    }

    .mobile-background-section {
        background: linear-gradient(
            120deg,
            #0b3553 5%,
            #0e4369 10%,
            #115180 30%,
            #146097 40%,
            #176ead 50%,
            #1a7cc4 75%,
            #1d8abd 100%
        );
        background-size: 400% 400%;
        animation: gradientShift 8s ease-in-out infinite;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
        padding: 2rem 1rem;
    }

    .mobile-background-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
        pointer-events: none;
        z-index: 1;
    }

    .mobile-background-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
    }

    .mobile-logo {
        max-width: 250px;
        height: auto;
        animation: fadeInUp 1s ease-out both;
    }

    .mobile-welcome-text {
        user-select: none;
        font-weight: 300;
        line-height: 1.3;
        margin-bottom: 2rem;
        font-size: 1.5rem;
        animation: fadeInUp 1.2s ease-out 0.3s both;
        color: rgba(255, 255, 255, 0.95);
    }

    .mobile-form-card {
        background: white;
        border-radius: 12px;
        padding: 2rem 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        width: 100%;
        animation: fadeInUp 1.4s ease-out 0.6s both;
        color: #676A6C;
    }

    .mobile-form-card h3 {
        color: #333;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .mobile-container {
        min-height: 100vh;
    }
}

/* Signup Page Styles */
.signup-container {
    background: linear-gradient(135deg, #1a7cc4 0%, #1e6bb8 25%, #2266ad 50%, #1e6bb8 75%, #1a7cc4 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.signup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.signup-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out both;
}


#id_password_helptext {
    display: none;
}