/* Freedom VPN — вход на сайте, в стиле кабинета «OLED». Классы те же, что ждёт auth.js. */
@font-face { font-family: "InterVar"; src: url("assets/fonts/inter-latcyr.woff2") format("woff2"); font-weight: 400 700; font-display: swap; size-adjust: 97%; }
:root {
  --color-bg: #000000;
  --color-surface: #0F151E;
  --color-control: #161F2B;
  --color-ring: rgba(170, 200, 255, 0.14);
  --color-text: #F3F7FF;
  --color-text-secondary: #A3B1C6;
  --color-text-tertiary: #7D8AA0;
  --color-link: #8CC4FF;
  --color-accent: #2F7CF6;
  --color-danger: #FF6B6B;
  --color-focus: #9BE8FF;
  --gradient-accent: linear-gradient(135deg in oklab, #1B45D6 0%, #2566E8 60%, #276FEA 100%);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --font-ui: -apple-system, BlinkMacSystemFont, "InterVar", Roboto, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--color-bg); }
body {
  font-family: var(--font-ui);
  font-size: 15px; line-height: 1.45;
  color: var(--color-text);
  background: radial-gradient(80% 50% at 50% 0%, rgba(37, 102, 232, 0.22), transparent 70%), var(--color-bg);
  min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hidden { display: none !important; }
.wrap { max-width: 400px; margin: 0 auto; padding: 56px 16px 32px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo img { filter: drop-shadow(0 10px 30px rgba(47, 124, 246, 0.5)); border-radius: 0 !important; }
.logo-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.card {
  padding: 22px 18px 18px;
  border-radius: 26px;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-ring), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.card h2 { margin-bottom: 18px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--color-text-secondary); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 0; border-radius: 14px;
  background: var(--color-control);
  box-shadow: inset 0 0 0 1px rgba(170, 200, 255, 0.4);
  color: var(--color-text); font: inherit; font-size: 16px;
  transition: box-shadow 150ms ease-out;
}
.field input::placeholder { color: var(--color-text-tertiary); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--color-accent); }
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; margin-top: 6px;
  border: 0; border-radius: 16px;
  background: var(--gradient-accent); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 30px -12px rgba(47, 124, 246, 0.6);
  cursor: pointer;
  transition-property: scale, opacity; transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn:active:not(:disabled) { scale: 0.96; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-secondary { background: var(--color-control); box-shadow: none; color: var(--color-text); }
.switch-text { margin-top: 16px; text-align: center; font-size: 14px; color: var(--color-text-secondary); }
.switch-text a { display: inline-block; padding-block: 12px; color: var(--color-link); text-decoration: none; font-weight: 600; }
.error, .error-msg {
  margin-bottom: 14px; padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.1); color: var(--color-danger);
  font-size: 14px;
}

/* Unbounded (проба, как в кабинете): без параметра — везде, ?hfont=headings — только заголовок, ?hfont=sf — прежний */
@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "UnboundedText"; src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; size-adjust: 90%; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "UnboundedText"; src: url("assets/fonts/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; size-adjust: 90%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root:not([data-heading-font="sf"]):not([data-heading-font="headings"]) { --font-ui: "UnboundedText", -apple-system, BlinkMacSystemFont, "InterVar", Roboto, "Segoe UI", sans-serif; }
:root:not([data-heading-font="sf"]) .logo-title { font-family: "Unbounded", var(--font-ui); font-weight: 600; letter-spacing: -0.01em; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root:not([data-heading-font="sf"]):not([data-heading-font="headings"]) :is(.field label, .switch-text) { font-family: "Onest", -apple-system, BlinkMacSystemFont, "InterVar", Roboto, "Segoe UI", sans-serif; }
