/* ── SHARED REUSABLE UI COMPONENTS ── */

/* ── MODERN AUTHENTICATION WIDGET STYLES ── */
#authLock {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at 50% 50%, #0d1b3e 0%, #050b1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#authLock.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    width: 380px;
    background: linear-gradient(180deg, rgba(14, 22, 39, 0.92), rgba(10, 15, 28, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: auth-card-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-card-fade-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-logo {
    color: #8bb7ff;
    background: rgba(139, 183, 255, 0.12);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.auth-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2px;
}

.auth-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 12px 16px;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #8bb7ff;
    background: rgba(3, 7, 15, 0.45);
    box-shadow: 0 0 0 3px rgba(139, 183, 255, 0.16);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-submit-btn {
    background: linear-gradient(135deg, #8bb7ff, #ffb36b);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    filter: saturate(1.08);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    background: #047857;
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    transform: none;
}

.auth-error-message {
    color: #ef4444;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    display: none;
    animation: auth-shake 0.4s ease-in-out;
}

@keyframes auth-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ── LOGOUT BUTTON ── */
.logout-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10001;
    background: var(--glass-base);
    backdrop-filter: var(--blur-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s,
                box-shadow 0.3s, transform 0.3s,
                opacity 0.6s ease, translate 0.6s ease;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff6b7a, #ffb36b);
    color: white;
    border-color: #ff4b2b;
    transform: scale(1.05);
}

.logout-btn.logout-idle {
    opacity: 0;
    translate: -10px 0;
    pointer-events: none;
}

