@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-wght.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root { color-scheme: dark; --bg: #08080a; --panel: #111115; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18); --fg: #ececf0; --fg-3: #6e6e7a; --accent: #9bd8ff; --bad: #ff6b6b; }
@media (prefers-color-scheme: light) { :root { color-scheme: light; --bg: #f6f6f3; --panel: #fff; --line: rgba(15,15,20,.1); --line-2: rgba(15,15,20,.2); --fg: #111115; --fg-3: #8b8b96; --accent: #12335f; --bad: #c43333; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 14px/1.5 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(50% 45% at 50% 30%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--bg); }
main { min-height: 100%; display: grid; place-items: center; padding: 24px; }
form { width: min(340px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; animation: in .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }
.mark { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font: 400 34px/1 "Instrument Serif", Georgia, serif; color: #eef4ff;
  background: radial-gradient(120% 120% at 30% 20%, #2a5d99 0%, #12335f 55%, #0a1f3d 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px -14px rgba(18,51,95,.9); }
h1 { font: 400 54px/1 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; margin: 22px 0 6px; }
.sub { margin: 0 0 30px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.field { position: relative; width: 100%; }
input[type=password] { width: 100%; height: 48px; padding: 0 52px 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-size: 15px;
  outline: none; transition: border-color .2s, box-shadow .2s; }
input[type=password]:focus { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: var(--bg); transition: transform .12s, filter .15s; }
.field button:hover { filter: brightness(1.08); }
.field button:active { transform: scale(.94); }
.msg { min-height: 20px; margin: 14px 0 0; font-size: 13px; color: var(--bad); }
form.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-7px); } }
form.busy button { pointer-events: none; opacity: .6; }
