/* ===================================================================
   Земрадар.ру — auth (премиум: aurora mesh + glassmorphism)
   Сине-голубая гамма (дальтоник-safe). Акцент #0072B2 / циан.
   =================================================================== */
:root {
  --paper:      #fbfaf8;
  --surface:    #ffffff;
  --field:      #f6f6f4;
  --ink:        #16181d;
  --ink-soft:   #6b7078;
  --line:       #e7e8ea;
  --line-soft:  #eef0f1;
  --accent:     #0072b2;
  --accent-700: #024e7c;
  --accent-tint:#e6f0f8;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ============================ AUTH SCENE ============================ */
.auth {
  position: relative;
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: var(--s-5, 24px);
  overflow: hidden;
  background: #060a16;
  isolation: isolate;
}
/* aurora mesh — цветные световые пятна */
.auth::before {
  content: ""; position: absolute; inset: -30%;
  z-index: -2;
  background:
    radial-gradient(38% 44% at 20% 24%, rgba(37,99,235,.55) 0%, transparent 60%),
    radial-gradient(34% 40% at 82% 18%, rgba(14,165,233,.50) 0%, transparent 62%),
    radial-gradient(46% 50% at 68% 82%, rgba(99,102,241,.45) 0%, transparent 60%),
    radial-gradient(40% 46% at 12% 86%, rgba(6,182,212,.38) 0%, transparent 60%);
  filter: blur(30px) saturate(120%);
  animation: drift 26s ease-in-out infinite alternate;
}
/* зерно поверх (убирает бандинг градиентов, даёт «плёнку») */
.auth::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%,-2%,0) scale(1.06); }
  100% { transform: translate3d(-2%,2%,0) scale(1.03); }
}

/* стеклянная карточка */
.auth__card {
  position: relative;
  width: 100%; max-width: 432px;
  padding: 40px 38px 34px;
  border-radius: 26px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,.20) inset,
    0 30px 80px rgba(2,6,20,.55);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  color: #eef2f8;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
/* тонкий верхний блик по краю */
.auth__card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 34%);
}

.brand__mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.03em; color: #fff;
  margin-bottom: 26px;
}
.brand__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56,189,248,.22), 0 0 16px 2px rgba(56,189,248,.7);
}

.auth__head { margin-bottom: 26px; }
.auth__head h1 {
  font-size: 30px; color: #fff; margin-bottom: 8px;
  animation: rise .6s .05s cubic-bezier(.2,.7,.2,1) both;
}
.auth__lede { color: rgba(226,232,240,.72); font-size: 15px; line-height: 1.5; margin: 0; }

/* поля */
form { margin: 0; }
.field { margin-bottom: 15px; animation: rise .6s .1s cubic-bezier(.2,.7,.2,1) both; }
.field > label {
  display: block; font-size: 13px; font-weight: 700; color: rgba(226,232,240,.9);
  margin-bottom: 7px; letter-spacing: -0.01em;
}
.auth input[type="text"],
.auth input[type="email"],
.auth input[type="password"] {
  width: 100%; font: inherit; font-size: 16px; font-weight: 500;
  color: #fff;
  padding: 14px 15px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.auth input::placeholder { color: rgba(226,232,240,.42); font-weight: 500; }
.auth input:hover:not(:focus) { border-color: rgba(255,255,255,.24); }
.auth input:focus {
  outline: none;
  background: rgba(255,255,255,.09);
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56,189,248,.18), 0 0 20px rgba(56,189,248,.15);
}

/* кнопка — градиент + свечение */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; font: inherit; font-weight: 700; font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9 0%, #0072b2 60%, #2563eb 100%);
  border: none; border-radius: var(--radius);
  padding: 15px 20px; margin-top: 8px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(14,165,233,.40), 0 1px 0 rgba(255,255,255,.25) inset;
  transition: transform .08s, box-shadow .18s, filter .18s;
  animation: rise .6s .16s cubic-bezier(.2,.7,.2,1) both;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(14,165,233,.55), 0 1px 0 rgba(255,255,255,.3) inset; filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:focus-visible { outline: 3px solid rgba(56,189,248,.5); outline-offset: 2px; }

.auth__row { display: flex; justify-content: flex-end; margin: -4px 0 18px; }
.auth__row a { font-size: 13px; color: #7dd3fc; }
.auth__row a:hover { color: #bae6fd; }
.auth__alt {
  margin: 24px 0 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center; font-size: 14.5px; color: rgba(226,232,240,.7); font-weight: 500;
  animation: rise .6s .2s cubic-bezier(.2,.7,.2,1) both;
}
.auth__alt a { color: #7dd3fc; }
.auth__alt a:hover { color: #bae6fd; }

/* ошибки */
ul.errorlist, .errorlist { list-style: none; margin: 7px 0 0; padding: 0; }
.errorlist li {
  color: #fecdd3; background: rgba(244,63,94,.16);
  border: 1px solid rgba(244,63,94,.3);
  border-radius: 9px; padding: 8px 12px; font-size: 13px; font-weight: 600; margin-top: 6px;
}
.nonfield { margin-bottom: 15px; }
.helptext { display: block; color: rgba(226,232,240,.5); font-size: 12.5px; margin-top: 6px; line-height: 1.4; }

/* иконка-бейдж для info/success-экранов */
.auth__icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(56,189,248,.14); border: 1px solid rgba(56,189,248,.32);
  color: #7dd3fc; box-shadow: 0 0 26px rgba(56,189,248,.28);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.auth__icon svg { width: 26px; height: 26px; display: block; }

.auth__note { color: rgba(226,232,240,.75); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.auth__note strong { color: #fff; font-weight: 700; }

a.btn { text-decoration: none; }
.btn--ghost {
  background: rgba(255,255,255,.06); color: #eef2f8;
  border: 1px solid rgba(255,255,255,.14); box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.1); filter: none; box-shadow: none; transform: translateY(-1px); }
.auth__stack { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .auth { padding: 18px; }
  .auth__card { padding: 30px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth::before { animation: none; }
  .auth__card, .auth__head h1, .field, .btn, .auth__alt { animation: none; }
  * { transition: none !important; }
}
