/* ─── Auth Gate ─── */

.hidden-by-auth {
    display: none !important;
}

/* Full-page login overlay */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg, #1a1a2e);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Card */
.login-card {
    text-align: center;
    padding: 3rem 2.5rem;
    background: var(--color-surface, #16213e);
    border: 1px solid var(--color-border, #2a2a4a);
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-accent, #4da8da);
    margin-bottom: 0.25rem;
}

.login-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text, #e0e0e0);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted, #a0a0b0);
    margin-bottom: 2rem;
}

/* Google sign-in button */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: #3c4043;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.btn-google:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-google:active {
    transform: scale(0.98);
}

.google-icon {
    flex-shrink: 0;
}

/* App shell (everything behind the overlay) */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sign-out button in nav */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: none;
    border: 1px solid var(--color-border, #2a2a4a);
    border-radius: 6px;
    color: var(--color-text-muted, #a0a0b0);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.btn-logout:hover {
    color: var(--color-text, #e0e0e0);
    border-color: var(--color-text-muted, #a0a0b0);
}