:root {
    --home-ink: #172033;
    --home-muted: #59687b;
    --home-border: #dfe5ec;
    --home-primary: #334155;
    --home-primary-hover: #1e293b;
    --home-accent: #047857;
    --home-accent-hover: #065f46;
    --home-focus: #2563eb;
}

* { box-sizing: border-box; }

body {
    display: grid;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-rows: 1fr auto;
    margin: 0;
    color: var(--home-ink);
    background:
        radial-gradient(circle at 15% 15%, rgba(5, 150, 105, .1), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(37, 99, 235, .08), transparent 28%),
        #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.welcome {
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.welcome-card {
    width: min(100%, 620px);
    padding: clamp(32px, 7vw, 58px);
    border: 1px solid rgba(223, 229, 236, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .11);
    text-align: center;
}

.welcome-logo {
    display: block;
    width: clamp(124px, 27vw, 156px);
    height: clamp(124px, 27vw, 156px);
    margin: 0 auto 22px;
    border-radius: 20px;
    object-fit: contain;
}

.welcome-label {
    display: block;
    margin-bottom: 10px;
    color: var(--home-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.25rem);
    letter-spacing: -.045em;
    line-height: 1.08;
    text-wrap: balance;
}

p {
    max-width: 500px;
    margin: 18px auto 0;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.welcome-button {
    display: inline-flex;
    min-width: 140px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .95rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.welcome-login {
    color: #fff;
    background: var(--home-primary);
    box-shadow: 0 10px 24px rgba(51, 65, 85, .18);
}

.welcome-login:hover { background: var(--home-primary-hover); }

.welcome-register {
    border-color: #b9c5d2;
    color: var(--home-accent);
    background: #fff;
}

.welcome-register:hover {
    border-color: var(--home-accent);
    background: #f0fdf8;
}

.welcome-button:focus-visible,
footer a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 3px;
}

footer {
    display: flex;
    min-height: 68px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--home-border);
    color: #64748b;
    background: rgba(248, 250, 252, .92);
    font-size: .8rem;
    text-align: center;
}

footer a { color: var(--home-primary); font-weight: 750; }

@media (max-width: 480px) {
    .welcome { padding: 24px 14px; }
    .welcome-card { padding: 30px 20px; border-radius: 18px; }
    .welcome-actions { align-items: stretch; flex-direction: column; }
    .welcome-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
