/* Login Modal Styles */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal-overlay.active .login-modal {
    transform: scale(1) translateY(0);
}

.login-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.login-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.login-description strong {
    color: var(--accent-color);
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-hover);
}

.login-input::placeholder {
    color: var(--text-muted);
}

.code-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.code-prefix {
    position: absolute;
    left: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    pointer-events: none;
}

.code-input {
    padding-left: 36px !important;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-hover);
    margin-top: 10px;
}

.login-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.login-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .login-modal {
        padding: 30px 20px;
        width: 95%;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-description {
        font-size: 13px;
    }
}