@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat/montserrat-latin.woff2") format("woff2");
  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 {
  --auth-bg: #eef2f7;
  --auth-surface: #ffffff;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-accent: #0f766e;
  --auth-accent-hover: #0d9488;
  --auth-line: #dbe3ee;
  --auth-radius: 16px;
}

* { box-sizing: border-box; }

.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(15, 118, 110, .14), transparent 58%),
    radial-gradient(800px 420px at 100% 0%, rgba(14, 116, 144, .08), transparent 52%),
    linear-gradient(180deg, #f8fafc 0%, var(--auth-bg) 42%, #e8eef6 100%);
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.35rem 1.1rem;
}

.auth-footer {
  margin: 0;
  text-align: center;
  color: var(--auth-muted);
  font-size: .75rem;
  letter-spacing: .02em;
}

.auth-card {
  width: min(100%, 24rem);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: var(--auth-surface);
  box-shadow: 0 14px 42px rgba(15, 23, 42, .08);
  padding: 1.45rem 1.3rem 1.5rem;
}

.auth-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 1rem;
  row-gap: .35rem;
  margin-bottom: 1.25rem;
}

.auth-heading {
  display: grid;
  grid-template-rows: 29px auto;
  align-items: center;
  min-width: 0;
}

.auth-heading-sub,
.auth-eyebrow {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--auth-muted);
  line-height: 1.25;
}

.auth-brand {
  display: grid;
  grid-template-rows: 29px auto;
  align-items: center;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

.auth-brand .brand-logo,
.auth-brand img {
  display: block;
  width: 148px;
  height: 29px;
}

.auth-card-top h1,
.auth-heading h1,
.auth-card h1 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
  color: var(--auth-text);
  min-height: 29px;
}

.auth-card-top + .alert,
.auth-card-top + form,
.auth-card-top + .text-muted {
  margin-top: 0;
}

.auth-card h1 i,
.auth-heading h1 i {
  color: var(--auth-accent);
  font-size: 1.15rem;
  line-height: 1;
}

.auth-card .form-label {
  margin-bottom: .35rem;
  font-size: .86rem;
  font-weight: 600;
  color: #475569;
}
.auth-form-legend {
  margin: 0 0 .85rem;
  font-size: .78rem;
  color: #64748b;
}
.admin-req {
  color: #dc2626;
  font-weight: 700;
  margin-left: .1rem;
}

.auth-card .form-control {
  border-radius: 12px;
  border-color: #cbd5e1;
  min-height: 2.85rem;
  padding: .65rem .9rem;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}

.auth-card input[type="password"] {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.auth-card .form-control:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .15);
}

.auth-card .btn-primary {
  background: var(--auth-accent);
  border-color: var(--auth-accent);
  border-radius: 12px;
  font-weight: 650;
  min-height: 2.9rem;
  letter-spacing: .01em;
}

.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus {
  background: var(--auth-accent-hover);
  border-color: var(--auth-accent-hover);
}

.auth-card .alert {
  border-radius: 12px;
  font-size: .9rem;
}

.auth-card--wide {
  width: min(100%, 42rem);
}

/* Honeypot: скрыто от людей, видно ботам в HTML */
.auth-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 420px) {
  .auth-card {
    padding: 1.2rem 1rem 1.25rem;
  }

  .auth-brand .brand-logo,
  .auth-brand img {
    width: 132px;
    height: 26px;
  }

  .auth-heading,
  .auth-brand {
    grid-template-rows: 26px auto;
  }

  .auth-card-top h1,
  .auth-heading h1,
  .auth-card h1 {
    min-height: 26px;
    font-size: 1.12rem;
  }
}
