/* Auth Overlay Styles */
#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85); /* Deep slate with opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#auth-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.auth-container {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: slideUp 0.4s ease-out forwards;
}

.auth-header {
    background: #f8fafc;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.auth-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 600;
}

.auth-header p {
    margin: 8px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

.auth-body {
    padding: 24px;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
    text-align: center;
    background: #fef2f2;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit-btn:hover {
    background: #2563eb;
}

.auth-submit-btn:active {
    background: #1d4ed8;
}

.complex-step.hidden {
    display: none;
}

.complex-selector {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
