@font-face {
  font-family: 'Inter';
  src: url('/_login/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07080a;
  --surface: #14171c;
  --surface-2: #1d2128;
  --line: #2a2f38;
  --text: #f3f5f8;
  --muted: #9aa3af;
  --accent: #3d8bff;
  --danger: #ff5a5f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: radial-gradient(1200px 700px at 50% -10%, #17202e 0%, var(--bg) 60%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: grid;
  place-items: center;
  padding: 32px;
}

.card {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo svg { width: 96px; height: 96px; fill: var(--accent); opacity: .95; }

h1 { margin: 0; font-size: 48px; font-weight: 700; letter-spacing: -.02em; }

form { width: 100%; display: flex; flex-direction: column; gap: 20px; }

.field { position: relative; }

input {
  width: 100%;
  height: 96px;
  padding: 0 150px 0 32px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 34px;
  outline: none;
  transition: border-color .15s;
}
input::placeholder { color: var(--muted); }
input:focus { border-color: var(--accent); }

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ghost {
  position: absolute;
  right: 12px;
  top: 12px;
  height: 72px;
  min-width: 120px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
}

.primary {
  height: 104px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  transition: transform .1s, filter .15s;
}
.primary:active, .ghost:active { transform: scale(.97); filter: brightness(1.15); }
.primary:disabled { filter: grayscale(.6) brightness(.7); }

.message { min-height: 40px; margin: 0; text-align: center; font-size: 28px; font-weight: 600; color: var(--danger); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
