:root {
    color-scheme: light;
    --navy: #071c39;
    --ink: #10213b;
    --muted: #56708f;
    --primary: #1e88e5;
    --secondary: #06b6d4;
    --surface: #ffffff;
    --line: rgba(30, 136, 229, 0.22);
    --shadow: 0 18px 48px rgba(16, 62, 111, 0.16);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, rgba(207, 242, 255, 0.74), transparent 36%),
        linear-gradient(315deg, rgba(188, 221, 255, 0.72), transparent 38%),
        #eaf7ff;
}

.topbar {
    min-height: 72px;
    padding: 12px clamp(20px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(248, 252, 255, 0.78);
    background: var(--navy);
    box-shadow: 0 8px 24px rgba(7, 28, 57, 0.16);
}

.topbar img { display: block; width: 154px; height: auto; }

.page-shell {
    min-height: calc(100vh - 72px);
    padding: clamp(28px, 7vh, 72px) 20px;
    display: grid;
    place-items: center;
}

.card {
    width: min(100%, 520px);
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.45rem); line-height: 1.12; }

.eyebrow {
    margin: 0 0 10px;
    color: #0b5cad;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.success { color: #087f5b; }
.lead { margin: 14px 0 28px; color: var(--muted); line-height: 1.55; }
.form-stack { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; }

.field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.field input:focus-visible,
.credential:focus-visible,
.button:focus-visible {
    outline: 3px solid rgba(6, 182, 212, 0.42);
    outline-offset: 3px;
    border-color: var(--primary);
}

.button {
    min-height: 48px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 28px rgba(30, 136, 229, 0.28);
}

.button-secondary { width: 100%; color: #0b5cad; background: rgba(30, 136, 229, 0.09); }
.secondary-action { margin-top: 12px; }
.privacy-note { margin: 22px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.credential {
    width: 100%;
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--secondary);
    border-radius: 12px;
    color: var(--ink);
    background: #f5fbff;
    font: 600 0.95rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.copy-status { min-height: 1.5em; margin: 10px 0 0; color: #087f5b; font-weight: 700; }

.status-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #b42318;
    background: #fee4e2;
    font-size: 1.5rem;
    font-weight: 900;
}

@media (hover: hover) {
    .button:hover { transform: translateY(-1px); filter: brightness(1.02); }
}

@media (max-width: 600px) {
    .topbar { min-height: 62px; padding: 10px 16px; font-size: 0.86rem; }
    .topbar img { width: 124px; height: auto; }
    .page-shell { min-height: calc(100vh - 62px); padding: 20px 14px; align-items: start; }
    .card { padding: 24px 20px; border-radius: 18px; }
    .credential { padding: 15px; font-size: 0.88rem; overflow-wrap: anywhere; }
    .button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
    .button { transition: transform 160ms ease, filter 160ms ease; }
}
