/* Landing page styles. Shares the slate palette with the gated app
   (database/styles.css) for visual coherence before & after sign-in. */

:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-alt: #f8fafc;
    --color-border: #e2e8f0;
    --color-border-soft: #f1f5f9;
    --color-border-strong: #cbd5e1;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-subtle: #94a3b8;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-soft: #dbeafe;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 22px;
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

/* Atmospheric background — soft radial blobs in slate + blue tones
   layered over a very light gradient. Subtle enough that the focus
   stays on the card, but adds depth and warmth. */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100vh;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 18% 22%, rgba(37, 99, 235, 0.12) 0px, transparent 50%),
        radial-gradient(at 82% 78%, rgba(99, 102, 241, 0.10) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(14, 165, 233, 0.08) 0px, transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* The card itself — generous padding, removed visible border in favor
   of a layered shadow that gives it a quiet "floating" quality.
   Entrance animation: fades up on load. */
.landing {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 40px -16px rgba(15, 23, 42, 0.12),
        0 8px 16px -8px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    padding: 64px 56px 48px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    animation: landing-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes landing-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.landing-logo-link {
    display: inline-block;
    transition: transform var(--transition), opacity var(--transition);
}

.landing-logo-link:hover {
    opacity: 0.92;
    transform: scale(1.03);
}

.landing-logo {
    width: 108px;
    height: auto;
    margin-bottom: 32px;
    object-fit: contain;
}

.landing-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.landing-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 44px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Google sign-in button — Google's own brand guidelines call for a
   white pill with a multi-color G mark and a clear Sign in label.
   Slightly larger and more confident than the original; lifts on hover. */
.signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: border-color var(--transition), box-shadow var(--transition),
                transform var(--transition), background var(--transition);
    margin-bottom: 40px;
    cursor: pointer;
}

.signin-btn:hover {
    border-color: var(--color-border-strong);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.10), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.signin-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.signin-google-mark {
    flex-shrink: 0;
}

/* When already authenticated, swap to a primary-colored "Continue" CTA
   with a subtle inner highlight for a more modern button feel. */
.signin-btn-continue {
    background: linear-gradient(180deg, #2f6dee 0%, #2056d3 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
                0 4px 12px -2px rgba(37, 99, 235, 0.35),
                0 2px 4px -1px rgba(37, 99, 235, 0.20);
}

.signin-btn-continue:hover {
    background: linear-gradient(180deg, #2a64df 0%, #1c4dc2 100%);
    border-color: transparent;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
                0 6px 16px -2px rgba(37, 99, 235, 0.45),
                0 3px 6px -1px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.landing-footnote {
    color: var(--color-text-subtle);
    font-size: 0.82rem;
    line-height: 1.7;
    margin-top: 4px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border-soft);
}

@media (max-width: 480px) {
    body { padding: 16px; }
    .landing { padding: 48px 28px 36px; border-radius: 18px; }
    .landing-title { font-size: 1.75rem; }
    .landing-subtitle { font-size: 0.78rem; margin-bottom: 36px; }
    .landing-logo { width: 88px; margin-bottom: 24px; }
    .signin-btn { padding: 12px 22px; font-size: 0.9rem; margin-bottom: 32px; }
}
