/* ============================================
   Adiona IoT — стили страницы входа
   ============================================ */

:root {
  --bg: #0f172a; --bg-card: #1e293b; --bg-soft: #16223a;
  --border: #2e3f5c; --text: #e2e8f0; --text-dim: #94a3b8;
  --accent: #38bdf8;
}

.login-page {
  background:
    radial-gradient(900px circle at 15% 20%, rgba(56,189,248,.10), transparent 55%),
    radial-gradient(700px circle at 85% 80%, rgba(52,211,153,.07), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
}

/* ---------- Поля с иконками ---------- */
.field-label {
  color: var(--text-dim); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .35rem; display: block;
}

.field-wrap { position: relative; }
.field-wrap .bi {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none;
}
.field-wrap .form-control {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding-left: 2.6rem;
  height: 46px;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field-wrap .form-control::placeholder { color: #64748b; }
.field-wrap .form-control:focus {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}

/* ---------- Кнопка ---------- */
.btn-login {
  height: 46px; border-radius: 12px;
  background: var(--accent); border: none;
  color: #0b1120; font-weight: 600; font-size: 1rem;
  transition: background .15s, box-shadow .15s;
}
.btn-login:hover {
  background: #7dd3fc;
  box-shadow: 0 0 18px rgba(56,189,248,.35);
}

/* ---------- Ошибка ---------- */
.login-alert {
  background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.4);
  color: #fca5a5; font-size: .9rem;
  border-radius: 12px;
}

/* ---------- Подвал ---------- */
.login-foot { color: var(--text-dim); font-size: .85rem; }
.login-foot a { color: var(--accent); text-decoration: none; }
.login-foot a:hover { text-decoration: underline; }

/* ---------- Щит в шапке ---------- */
.login-shield {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--accent);
  box-shadow: 0 0 26px rgba(56,189,248,.25);
}

/* ---------- Капча ---------- */
.captcha-box {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.captcha-question {
  color: var(--text);
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.captcha-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  text-align: center;
  font-size: 1.05rem;
}
.captcha-input:focus {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}

/* ---------- Индикатор шагов ---------- */
.reg-steps {
  display: flex; justify-content: center; gap: 8px;
}
.reg-dot {
  width: 28px; height: 4px; border-radius: 2px;
  background: var(--border);
  transition: background .2s;
}
.reg-dot.active { background: var(--accent); }

/* ---------- Кнопка «Назад» ---------- */
.login-back {
  color: var(--text-dim); font-size: .9rem;
  text-decoration: none;
}
.login-back:hover { color: var(--text); }

