:root {
  --bg: #080b12;
  --panel: #151c2c;
  --line: rgba(148, 163, 184, 0.18);
  --text: #eef2f8;
  --muted: #8494ad;
  --accent: #6b8cff;
  --accent2: #8ba4ff;
  --danger: #f4a6a6;
  --warn: #e8c97a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  width: 390px;
  height: 390px;
  left: -210px;
  top: -160px;
  background: radial-gradient(circle, rgba(107, 140, 255, 0.15), transparent 70%);
}

body::after {
  width: 440px;
  height: 440px;
  right: -250px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(126, 184, 255, 0.1), transparent 70%);
}

.login-wrap {
  width: min(430px, 100%);
  position: relative;
  z-index: 1;
}

.brand-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  display: grid;
  place-items: center;
  color: #0a0e17;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(107, 140, 255, 0.22);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
  padding: 4px;
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.login-card {
  background: linear-gradient(165deg, rgba(26, 35, 54, 0.92), rgba(15, 20, 32, 0.98));
  border: 1px solid rgba(139, 164, 255, 0.18);
  border-radius: 24px;
  padding: 26px 24px 23px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 26px 70px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}

.access-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(107, 140, 255, 0.35);
  background: rgba(107, 140, 255, 0.1);
  color: var(--accent2);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.access-chip i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
}

h1 {
  font-size: 28px;
  line-height: 1.12;
  margin: 16px 0 7px;
  letter-spacing: -0.8px;
}

h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), transparent);
}

.lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
}

.alert {
  padding: 11px 12px;
  border-radius: 11px;
  margin: 0 0 12px;
  font-size: 12px;
}

.error {
  background: rgba(244, 166, 166, 0.12);
  border: 1px solid rgba(244, 166, 166, 0.35);
  color: var(--danger);
}

.warn {
  background: rgba(232, 201, 122, 0.12);
  border: 1px solid rgba(232, 201, 122, 0.35);
  color: var(--warn);
}

.field { margin: 12px 0; }

.field-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 7px;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1420;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-height: 52px;
  padding: 0 14px;
  transition: 0.18s ease;
}

.input-shell:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.12);
}

.input-shell input {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--text);
  width: 100%;
  font-size: 15px;
  padding: 14px 0 !important;
}

.eye {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.login-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 17px;
  box-shadow: 0 12px 26px rgba(107, 140, 255, 0.2);
}

.login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 16px;
}

.bottom-note {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 14px;
}

@media (max-width: 420px) {
  .login-card { border-radius: 20px; padding: 22px 18px; }
  h1 { font-size: 25px; }
}
