@font-face {
    font-family: "Futura NUtec";
    src: url("futura-book.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Futura NUtec";
    src: url("futura-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --olive: #89925e;
    --olive-hi: #b8c47e;
    --paper: #0b1016;
    --line: #25303c;
    --ink: #eef1f4;
    --body: #c4cbd3;
    --muted: #8d99a6;
    --err: #ff8a7a;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--paper);
    color: var(--body);
    font: 400 16px/1.5 "Futura NUtec",Futura,"Trebuchet MS",Arial,sans-serif;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    background: radial-gradient(40% 35% at 50% 38%,rgba(137,146,94,.22),transparent 70%),radial-gradient(30% 30% at 80% 90%,rgba(71,99,184,.10),transparent 70%);
    pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
    to {
        transform: translate3d(0,-3%,0) scale(1.05);
    }
}

main {
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    display: block;
    width: 210px;
    max-width: 62%;
    height: auto;
    margin: 0 auto 34px;
}

.card {
    background: linear-gradient(180deg,rgba(20,28,38,.92),rgba(17,24,33,.92));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 28px 26px;
    text-align: left;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(6px);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--olive-hi);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
}

.kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--olive);
    box-shadow: 0 0 0 4px rgba(137,146,94,.18);
}

h1 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .005em;
}

.lead {
    margin: 0 0 24px;
    font-size: .95rem;
    color: var(--muted);
}

label {
    display: block;
    margin: 0 0 6px;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.field {
    position: relative;
    margin-bottom: 16px;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0e151d;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s,box-shadow .2s;
}

input:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(137,146,94,.25);
}

.pw input {
    padding-right: 52px;
}

.eye {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 40px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.eye:hover,.eye:focus-visible {
    color: var(--ink);
    background: rgba(255,255,255,.06);
    outline: none;
}

button[type=submit] {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--olive);
    color: #10140a;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .2s,transform .1s;
}

button[type=submit]:hover {
    background: #9aa36d;
}

button[type=submit]:active {
    transform: translateY(1px);
}

button[type=submit]:focus-visible {
    outline: 2px solid var(--olive-hi);
    outline-offset: 3px;
}

.eye[hidden] {
    display: none;
}

.err {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,138,122,.08);
    border: 1px solid rgba(255,138,122,.35);
    color: #ffd2cb;
    font-size: .92rem;
}

.err svg {
    flex: none;
    margin-top: 2px;
    color: var(--err);
}

.has-err .err {
    display: flex;
}

.has-err input {
    border-color: rgba(255,138,122,.55);
}

.has-err .card {
    animation: shake .4s;
}

@keyframes shake {
    20%,60% {
        transform: translateX(-6px);
    }
    40%,80% {
        transform: translateX(6px);
    }
}

.foot {
    margin: 22px 0 0;
    font-size: .8rem;
    color: #66717d;
}

@media (prefers-reduced-motion: reduce) {
    body::before, .has-err .card {
        animation: none;
    }
}
