:root {
    color-scheme: dark;
    --bg: #0c1220;
    --card: #141c2f;
    --line: #2a3654;
    --text: #e7eefc;
    --muted: #93a0bd;
    --accent: #7dd3c7;
    --danger: #fecdd3;
    --danger-bg: rgba(244, 63, 94, 0.14);
    --ok-bg: rgba(45, 212, 191, 0.12);
    --font: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(125, 211, 199, 0.16), transparent 55%),
        var(--bg);
}

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

.wrap {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 { margin: 0 0 8px; font-size: 1.6rem; }
h2 { margin: 28px 0 8px; font-size: 1.05rem; }

p { color: var(--muted); line-height: 1.45; }

.top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }

input, select, button {
    font: inherit;
    color: inherit;
}

input, select {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0d1424;
    padding: 10px 12px;
}

button, .btn {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    background: var(--accent);
    color: #08211d;
    font-weight: 700;
    cursor: pointer;
}

#hello-button,
#hello-register { width: 100%; }

#hello-register {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.hello-actions { display: grid; gap: 10px; }
.hello-actions[hidden] { display: none; }

.app-row { align-items: center; }
.app-copy { display: grid; gap: 2px; }
.app-row form { margin: 0; }
.app-row button { white-space: nowrap; }

button:disabled {
    opacity: 0.65;
    cursor: progress;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
}

.lang {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang select { min-height: 38px; width: auto; }

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 14px;
}

.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: #99f6e4; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.list small { color: var(--muted); }

.choice { margin: 0; }
.choice button { width: 100%; text-align: left; background: #0d1424; color: var(--text); border: 1px solid var(--line); }
.choice button:hover { border-color: var(--accent); }
