/* Steam styled auth modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 14, 20, 0.88); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.25s ease-out;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
    background: linear-gradient(135deg, #1b2838 0%, #141c24 100%); 
    border-radius: 6px;
    padding: 32px; width: 90%; max-width: 420px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(102, 192, 244, 0.15);
    border: 1px solid var(--border-color, #2a475e);
    transform: translateY(15px); transition: transform 0.25s ease-out;
}
.modal-overlay.active .modal { transform: translateY(0); }

.auth-tabs { display: flex; margin-bottom: 25px; border-bottom: 2px solid var(--border-color, #2a475e); }
.auth-tab {
    flex: 1; text-align: center; padding: 12px; cursor: pointer;
    color: var(--text-muted, #8f98a0); font-weight: 600; font-size: 1.05rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}
.auth-tab:hover { color: #fff; }
.auth-tab.active { 
    color: #fff; 
    border-bottom: 2px solid var(--steam-blue, #66c0f4); 
    margin-bottom: -2px; 
}

.input-group { margin-bottom: 18px; text-align: left; }
.input-group label { display: block; margin-bottom: 6px; color: var(--text-muted, #8f98a0); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; }
.input-group input {
    width: 100%; padding: 12px 14px; border-radius: 4px;
    background: #121e2b; border: 1px solid var(--border-color, #2a475e);
    color: #fff; font-size: 0.95rem; transition: border 0.2s, background 0.2s;
}
.input-group input:focus { 
    border-color: var(--steam-blue, #66c0f4); 
    background: #172738; 
    outline: none; 
    box-shadow: 0 0 8px rgba(102, 192, 244, 0.3);
}

.error-msg { color: #ff6b6b; font-size: 0.85rem; margin-top: -8px; margin-bottom: 14px; display: none; }

.google-btn {
    width: 100%; padding: 12px; margin-top: 15px; border-radius: 4px;
    background: #fff; color: #171a21; font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: none; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.google-btn:hover { background: #e1e7ee; transform: translateY(-1px); }

.auth-divider {
    display: flex; align-items: center; text-align: center; margin: 20px 0; color: var(--text-muted, #8f98a0); font-size: 0.85rem; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; border-bottom: 1px solid var(--border-color, #2a475e);
}
.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }