/* Страница входа. Язык взят у лендинга команды: светлый зеленовато-серый
 * фон, глубокий зелёный текст, крупный заголовок с плотным трекингом,
 * мелкий моноширинный кикер и кнопка-пилюля.
 *
 * Отдельным файлом, а не в общих стилях: оболочка приложения тёмная, и
 * смешивать две палитры в одном файле — верный способ получить светлую
 * кнопку на тёмной панели через месяц.
 */

:root {
  --bg: #eef3ec;
  --ink: #10291f;
  --muted: #66756d;
  --green: #153f30;
  --green-2: #1f5540;
  --lime: #ddec79;
  --line: rgba(16, 41, 31, .13);
  --r: 28px;
  --sans: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html.auth, .auth body { background: var(--bg); }

.auth body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Мягкое пятно за карточкой — тот же приём, что в шапке лендинга:
   плоский фон выглядит дёшево, а фотография на входе грузится дольше,
   чем человек готов ждать. */
.auth body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  background:
    radial-gradient(38vmax 30vmax at 22% 14%, rgba(221, 236, 121, .40), transparent 62%),
    radial-gradient(42vmax 34vmax at 82% 84%, rgba(31, 85, 64, .16), transparent 66%);
  pointer-events: none;
}

.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 440px; }

.auth-brand {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 26px 2px;
}
.auth-brand span {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: 600 15px/1 var(--display);
  letter-spacing: -.04em;
}
.auth-brand b { font: 600 17px/1 var(--display); letter-spacing: -.035em; }

.auth-card {
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 24px 60px rgba(27, 53, 42, .11);
}

.auth-kicker {
  margin: 0 0 14px;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #73837a;
}

.auth-card h1 {
  margin: 0 0 10px;
  font: 600 clamp(30px, 4.4vw, 40px)/1.04 var(--display);
  letter-spacing: -.045em;
}
.auth-lede { margin: 0 0 28px; color: var(--muted); font-size: 15px; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 600; color: #4b5c53;
}
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.auth-field input:hover { border-color: rgba(16, 41, 31, .22); }
.auth-field input:focus {
  outline: none;
  border-color: var(--green-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 85, 64, .10);
}

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 4px 0 24px;
}
.auth-remember {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; cursor: pointer;
}
.auth-remember input { accent-color: var(--green); width: 15px; height: 15px; }
.auth-row a { color: var(--green-2); font-size: 13px; text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }

.auth-submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px;
  border: 0; border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 700 14px/1 var(--sans);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.auth-submit:hover {
  transform: translateY(-2px);
  background: var(--green-2);
  box-shadow: 0 14px 32px rgba(12, 35, 25, .22);
}
.auth-submit:active { transform: none; }

.auth-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.auth-flash {
  margin: 0 0 18px;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 13.5px;
}
.auth-flash.notice { background: #e6f0e4; color: #23503c; }
.auth-flash.alert { background: #fbe9e7; color: #7c2f24; }

.auth-foot {
  margin: 20px 2px 0;
  color: #7d8c84;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}
