/* Public-facing pages (landing, login, register, accept-invite, verify-2fa)
   - same design language as the dashboard (dashboard.css), kept as its own
   small file since these pages never load the dashboard shell. 2026-09-20
   style pass: sharp corners (--radius-* → 0), a rem type scale that
   shrinks on phones, hover feedback on every card, airier spacing. */

:root {
    --bg: #f2f2fb;
    --panel: #ffffff;
    --border: #ecebf6;
    --text: #22223a;
    --text-strong: #14141f;
    --muted: #8b8fa7;
    --accent: #6c5ce7;
    --accent-dark: #4b3fa0;
    --accent-2: #16c2af;
    --danger: #e0245e;
    --danger-bg: #fdeaf1;
    --danger-border: #f6c3d7;
    --success: #0f9e6e;
    --success-bg: #e6faf2;
    --success-border: #b7ecd6;

    /* Code/snippet box - same tinted recipe as dashboard.css's .code-block,
       kept in sync so the embed-script snippet looks identical wherever
       it's shown (2026-09-24 swap from #14141f/--accent-2). */
    --code-bg: #eeeafb;
    --code-border: #d9d2f5;

    /* Sharp-cornered look, same single-source-of-truth pattern as
       dashboard.css - every panel/card/button/input/pre below references
       these instead of a literal border-radius. */
    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 0;

    --shadow-card: 0 12px 30px rgba(45, 32, 100, 0.10);
    --shadow-card-hover: 0 18px 40px rgba(45, 32, 100, 0.16);
}

html {
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1100px 500px at 15% -10%, rgba(108, 92, 231, .12), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(22, 194, 175, .10), transparent 55%),
        var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* "Nagy tabletta gomb" scale - matches dashboard.css's .btn so the login/
   register/landing pages read at the same big, roomy size as the
   dashboard rather than a smaller public-page variant. */
.btn {
    display: inline-block;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(108, 92, 231, .32);
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.auth-card {
    max-width: 26.25rem;
    margin: 4rem auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.auth-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent);
}

.auth-card h1 {
    font-size: 1.3125rem;
    margin: 0 0 1.375rem;
    color: var(--text-strong);
}

.field { margin-bottom: 1.125rem; }

.field label {
    display: block;
    margin-bottom: 0.4375rem;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

.field input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:hover {
    border-color: var(--accent);
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, .14);
}

.field .hint, .hint { font-size: 0.875rem; color: var(--muted); margin-top: 0.375rem; }

.msg-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.125rem;
    font-size: 0.9375rem;
}

.msg-ok {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.125rem;
    font-size: 0.9375rem;
}

.auth-footer {
    margin-top: 1.375rem;
    font-size: 0.9375rem;
    color: var(--muted);
    text-align: center;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9375rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: var(--accent-dark);
}

.hero {
    max-width: 47.5rem;
    margin: 5.625rem auto 3.75rem;
    padding: 0 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.375rem;
    margin-bottom: 0.875rem;
    color: var(--text-strong);
    letter-spacing: -.01em;
    line-height: 1.2;
}

.hero p.lead { font-size: 1.125rem; color: var(--muted); margin-bottom: 2.125rem; }

/* Auto-fit/minmax instead of a fixed 3-column grid, so the feature cards
   wrap to fewer columns on their own as the viewport narrows - no
   separate 700px override needed for the column count any more. */
.features {
    max-width: 60rem;
    margin: 0 auto 5.625rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
    gap: 1.25rem;
}

.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.375rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.feature:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature h3 { margin: 0 0 0.625rem; font-size: 1.0625rem; color: var(--text-strong); }
.feature p { margin: 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 700px) {
    .hero h1 { font-size: 1.75rem; }
    /* top margin leaves room for the fixed home button (assets/css/home-button.css) */
    .auth-card { margin: 6rem 1rem 2.5rem; padding: 1.625rem; }
}

@media (max-width: 480px) {
    /* Phone type scale: 1rem now equals 14px instead of 16px, so every
       rem-based font-size/padding/gap on the page shrinks together
       (same breakpoint dashboard.css uses). */
    html { font-size: 14px; }
}
