:root {
    --ink: #0e1424;
    --ink-soft: #1a2340;
    --orange: #ff5b14;
    --ember: #ff8a3d;
    --volt: #c8f20a;
    --cloud: #f4f5fa;
    --line: #e3e6f0;
    --muted: #5b6478;
    --error: #d92d20;
    --radius: 16px;
    color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--cloud);
    -webkit-font-smoothing: antialiased;
}

.shell {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 64px);
    color: #fff;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    top: -10%;
    bottom: -10%;
    transform: skewX(-18deg);
    pointer-events: none;
}

.hero::before {
    right: 14%;
    width: 15%;
    background: var(--orange);
    box-shadow: 9vw 0 0 -2vw var(--volt), 17vw 0 0 0 rgba(255, 91, 20, .35);
}

.hero::after {
    left: -12%;
    bottom: -42%;
    top: auto;
    width: 60vmin;
    height: 60vmin;
    transform: none;
    border-radius: 50%;
    border: 3vmin solid rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 7vmin rgba(255, 255, 255, 0), 0 0 0 0 transparent;
}

.hero > * { position: relative; z-index: 1; }

.brand {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.04em;
    line-height: 1;
    text-transform: uppercase;
}

.brand span { color: var(--orange); }

.bolt {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 32px;
    margin-bottom: 22px;
    border-radius: 8px;
    background: var(--volt);
    color: var(--ink);
}

.hero-copy { max-width: 28rem; }

.tagline {
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, .78);
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pills li {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, .28);
}

.pills li:first-child {
    border-color: var(--volt);
    color: var(--volt);
}

/* ---------- panel ---------- */
.panel {
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 64px);
    background: #fff;
}

.card { width: 100%; max-width: 26rem; }

.card h1 {
    margin: 0 0 6px;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.lead {
    margin: 0 0 28px;
    color: var(--muted);
}

.field { margin-bottom: 18px; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
}

input {
    display: block;
    width: 100%;
    padding: 15px 18px;
    font: inherit;
    color: var(--ink);
    background: var(--cloud);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

input:focus {
    background: #fff;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 91, 20, .16);
}

.btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 16px 20px;
    font: inherit;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--ember));
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(255, 91, 20, .65);
    transition: transform .12s, box-shadow .12s;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(255, 91, 20, .7); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }

.alt {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
}

.alt a {
    font-weight: 800;
    color: var(--orange);
    text-decoration: none;
}

.alt a:hover { text-decoration: underline; }

.error,
.field-error {
    color: var(--error);
    font-size: .9rem;
    font-weight: 600;
}

.error:not(:empty) {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fee4e2;
}

.field-error { display: block; margin-top: 6px; }

/* ---------- small screens (the app opens this in a custom tab) ---------- */
@media (max-width: 820px) {
    .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

    .hero { padding: 28px 24px 56px; }
    .hero::before { right: 6%; width: 18%; box-shadow: 14vw 0 0 -3vw var(--volt); }
    .hero::after, .pills { display: none; }
    .bolt { margin-bottom: 14px; }
    .tagline { margin-top: 10px; }

    .panel {
        place-items: start center;
        margin-top: -28px;
        padding: 32px 24px 40px;
        border-radius: 28px 28px 0 0;
        position: relative;
        z-index: 2;
    }
}

/* ---------- language switch ---------- */
.panel { position: relative; }

.lang {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--cloud);
}

.lang a {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--muted);
    text-decoration: none;
}

.lang a.active { background: var(--ink); color: #fff; }

@media (max-width: 820px) {
    .lang { top: 14px; right: 16px; }
    .panel { padding-top: 56px; }
}
