/* Custom CSS for Login Page */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Inter", sans-serif;
    background: #fff;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* Common */
.login-alert {
    color: #fff;
    background: #f87171;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.error-message {
    color: #ef4444;
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 8px;
    line-height: 1.42;
    display: none; /* Initially hidden */
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        flex: unset;
        width: 100%;
        min-height: 100vh;
    }

    .login-right {
        display: none !important;
    }

    .login-player {
        display: none !important;
    }

    .testimonial {
        display: none !important;
    }

    .language-switcher {
        position: absolute;
        top: 16px;
        left: 16px;
    }

    .language-switcher .lpx-language-selection .dropdown-toggle {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .language-switcher .lpx-language-selection .lpx-icon {
        font-size: 0.875rem;
    }

    .language-switcher .lpx-language-selection .dropdown-menu {
        min-width: 140px;
    }

    .language-switcher .lpx-language-selection .dropdown-item {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Login Left */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-left-inner {
    width: 100%;
    max-width: 448px;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 100;
}

/* LeptonXLite Language Selection Styling */
.language-switcher .lpx-language-selection {
    position: relative;
    display: inline-block;
}

.language-switcher .lpx-language-selection .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.language-switcher .lpx-language-selection .dropdown-toggle:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
}

.language-switcher .lpx-language-selection .dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.language-switcher .lpx-language-selection .lpx-icon {
    font-size: 1rem;
    color: #6c757d;
}

.language-switcher .lpx-language-selection .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.language-switcher .lpx-language-selection .dropdown-menu.show {
    display: block;
}

.language-switcher .lpx-language-selection .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #212529;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    transition: all 0.15s ease-in-out;
}

.language-switcher .lpx-language-selection .dropdown-item:hover {
    background: #f8f9fa;
    color: #16181b;
    text-decoration: none;
}

.login-logo {
    margin-bottom: 24px;
}

.logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.login-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
    line-height: 1.26;
}

.login-desc {
    margin-bottom: 40px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.42;
    color: #4b5563;
}

.login-form {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    color: #111827;
}

.form-label {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.42;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 1px 2px 0 rgba(18, 26, 43, 0.05);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    padding-right: 40px;
    
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px #b3daff;
}

.form-input::placeholder {
    color: #6b7280;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.form-label-checkbox {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.42;
    color: #4b5563;
}

.form-link {
    color: #002d6d;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
}

.form-btn {
    width: 100%;
    padding: 10px 18px;
    background: #f3f4f6;
    color: #9ca3af;
    border: none;
    border-radius: 100px;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: not-allowed;
}

.form-btn.active {
    background: #002d6d;
    color: #fff;
    cursor: pointer;
}

.forgot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: #002d6d;
    font-weight: 500;
    font-size: 1.6rem;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.back-icon {
    width: 21px;
    height: 20px;
    flex-shrink: 0;
}

.password-input-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Login Right */
.login-right {
    flex: 1;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.login-right-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    position: relative;
    min-height: 0;
}

.login-player {
    position: absolute;
    right: 0 !important;
    left: unset;
    bottom: 80px;
    transform: none;
    width: 100%;
    height: auto;
    max-width: 100vw;
    max-height: 90vh;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.testimonial {
    position: relative;
    width: 100%;
    padding: 32px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    color: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 3rem;
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.testimonial-text {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.26;
    color: #fff;
    max-width: 60vw;
    min-width: 240px;
    word-break: break-word;
}

.testimonial-author {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
}

.testimonial-role {
    font-weight: 400;
    opacity: 0.85;
    margin-left: 4px;
    font-size: 1.4rem;
}

/* Account Lockout Styles */
#account-locked-display {
    display: block;
    width: 100%;
}

#account-locked-display .lockout-message {
    display: flex;
    align-items: center;
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 4px;
    width: 100%;
}

#account-locked-display .lockout-message svg,
#account-locked-display .lockout-message .lockout-icon {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#countdown-container {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 20px;
    padding: 1rem 32px;
    margin-top: 8px;
    text-align: center;
    width: 100% !important;
    max-width: none !important;
    display: block;
    box-sizing: border-box;
}

#countdown-timer {
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

/* Input validation styles */
.input-error {
    box-shadow: 0 0 0 3px #FCA5A5 !important;
}

.input-focus {
    box-shadow: 0 0 0 3px #b3daff !important;
}

/* Eye icon size */
.eye-icon {
    width: 22px;
    height: 22px;
}

/* Login error display */
.login-error-display {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 4px;
}