/* Full-screen login shown by LoginLayout. Mirrors the app's dark surface styling. */
.login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-screen {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--surface, #1e1e2e);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.login-brand svg {
    width: 28px;
    height: 28px;
    color: var(--accent, #8b9eff);
}

.login-text {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.login-google-btn {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.login-error {
    background: rgba(220, 70, 70, 0.15);
    border: 1px solid rgba(220, 70, 70, 0.4);
    color: #ff9b9b;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Full-screen splash shown while auth state is resolving or while redirecting to login.
   Fixed + full viewport so it covers the app chrome (NavMenu) instead of flashing the menu. */
.auth-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface, #1e1e2e);
}

.auth-splash__spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--border, rgba(255, 255, 255, 0.15));
    border-top-color: var(--accent, #8b9eff);
    border-radius: 50%;
    animation: auth-splash-spin 0.8s linear infinite;
}

@keyframes auth-splash-spin {
    to { transform: rotate(360deg); }
}

/* Logout button matches the nav links but is a <button>. */
.side-nav__logout {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
