:root {
    color-scheme: dark;
    --bg: #070b0f;
    --surface: #0d141b;
    --field: #081017;
    --text: #edf7f7;
    --muted: #91a5ad;
    --line: #263943;
    --line-strong: #3d5963;
    --accent: #36e0c0;
    --accent-strong: #72f3d9;
    --ink: #041411;
    --good: #4be3a4;
    --bad: #ff718c;
    --warn: #ffc857;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100vh;
    margin: 0;
    padding: clamp(24px, 7vh, 72px) 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

main {
    position: relative;
    width: min(780px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 84px clamp(22px, 5vw, 48px) clamp(26px, 5vw, 44px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48), 0 0 0 1px rgba(54, 224, 192, .04);
}

main::before {
    content: "SECUREPASS  /  ENCRYPTED SHARE";
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 clamp(22px, 5vw, 48px);
    border-bottom: 1px solid var(--line);
    background: #091118;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

main::after {
    content: "";
    position: absolute;
    top: 17px;
    right: clamp(22px, 5vw, 48px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 4px rgba(75, 227, 164, .12), 0 0 18px rgba(75, 227, 164, .42);
}

h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.15;
    font-weight: 760;
    letter-spacing: 0;
}

h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: 18px 0 26px;
    border-radius: 2px;
    background: var(--accent);
}

p { margin: 0 0 18px; }
form { margin-top: 8px; }

label {
    display: block;
    margin: 19px 0 7px;
    color: #d7e5e8;
    font-size: .83rem;
    font-weight: 750;
    letter-spacing: .02em;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    outline: none;
    font: inherit;
    color: var(--text);
    background: var(--field);
    caret-color: var(--accent);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

input:hover,
textarea:hover,
select:hover { border-color: var(--line-strong); }

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    background: #0a151c;
    box-shadow: 0 0 0 3px rgba(54, 224, 192, .12);
}

input[readonly],
textarea[readonly] {
    color: #bff9ed;
    border-color: #315e59;
    background: #081713;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .9rem;
}

textarea { resize: vertical; }
select { color-scheme: dark; cursor: pointer; }

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 22px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 11px 19px;
    font: inherit;
    font-weight: 800;
    color: var(--ink);
    background: var(--accent);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

button:hover,
.button:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: 0 8px 24px rgba(54, 224, 192, .18);
    transform: translateY(-1px);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 3px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 2px;
}

.check {
    display: flex;
    gap: 11px;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin-top: 22px;
    color: var(--text);
    font-weight: 650;
    cursor: pointer;
}

.check input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.notice {
    position: relative;
    border-radius: 6px;
    padding: 14px 15px 14px 44px;
    margin: 0 0 22px;
    border: 1px solid var(--line);
    font-weight: 650;
}

.notice::before {
    position: absolute;
    left: 16px;
    top: 13px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 900;
}

.good { background: #0a211a; color: #a7f4cf; border-color: #235b46; }
.good::before { content: "OK"; color: var(--good); font-size: .73rem; }
.bad { background: #281017; color: #ffb2c0; border-color: #713044; }
.bad::before { content: "!"; color: var(--bad); }
.warn { background: #241c09; color: #ffe09a; border-color: #66501b; }
.warn::before { content: "!"; color: var(--warn); }
.notice ul { margin: 0; padding-left: 18px; }
.muted { color: var(--muted); font-size: .92rem; }

dl {
    display: grid;
    grid-template-columns: minmax(125px, max-content) 1fr;
    gap: 0;
    margin: 24px 0 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--field);
}

dt,
dd { padding: 12px 14px; border-bottom: 1px solid var(--line); }
dt:nth-last-of-type(1),
dd:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: .82rem; font-weight: 750; }
dd { margin: 0; color: #dffbf5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

@media (max-width: 640px) {
    body { padding: 14px; }
    main { padding: 74px 20px 26px; }
    main::before { padding: 0 20px; font-size: .64rem; }
    main::after { right: 20px; }
    .grid { grid-template-columns: 1fr; gap: 0; }
    button, .button { width: 100%; }
    dl { grid-template-columns: 1fr; }
    dt { padding-bottom: 4px; border-bottom: 0; }
    dd { padding-top: 4px; }
    dt:nth-last-of-type(1) { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
