/* ── Auth Overlay ─────────────────────────────────────── */

.auth-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary, #0d1117);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-form {
    background: var(--bg-secondary, #161b22);
    border: 1px solid var(--border-color, #30363d);
    border-radius: 12px;
    padding: 40px;
    width: 360px;
    max-width: 90vw;
}

.auth-logo {
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary, #e6edf3);
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85em;
    color: var(--text-secondary, #8b949e);
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary, #21262d);
    border: 1px solid var(--border-color, #30363d);
    border-radius: 6px;
    color: var(--text-primary, #e6edf3);
    font-size: 1em;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: none;
    border-color: #388bfd;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: #238636;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.auth-submit:hover {
    background: #2ea043;
}

.auth-error {
    color: #f85149;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 8px;
}

.auth-error.hidden {
    display: none;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

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

/* User badge in sidebar footer */
.user-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #30363d);
    font-size: 0.85em;
}

.user-name {
    color: var(--text-secondary, #8b949e);
}

.btn-logout {
    background: none;
    border: 1px solid var(--border-color, #30363d);
    color: var(--text-secondary, #8b949e);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-logout:hover {
    color: #f85149;
    border-color: #f85149;
}
