:root {
  --bg: #090b0f;
  --surface: rgba(19, 22, 28, 0.88);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7f5;
  --muted: #969ba6;
  --green: #a8ff78;
  --cyan: #67e8f9;
  --red: #ff8c8c;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color: var(--text); background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
}

.ambient {
  position: fixed;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .11;
  pointer-events: none;
}
.ambient-one { top: -280px; right: -120px; background: var(--green); }
.ambient-two { bottom: -320px; left: -100px; background: #b9a3ff; }

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .7fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  width: min(1180px, 90vw);
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 70px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 92px;
  color: inherit;
  text-decoration: none;
}
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark {
  display: grid;
  align-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 8px 7px;
  border: 1px solid rgba(168, 255, 120, .35);
  border-radius: 10px;
  background: rgba(168, 255, 120, .06);
}
.brand-mark span { display: block; height: 3px; border-radius: 5px; background: var(--green); }
.brand-mark span:nth-child(2) { width: 70%; }
.brand-mark span:nth-child(3) { width: 40%; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 {
  max-width: 650px;
  margin: 0 0 24px;
  font-size: clamp(50px, 6vw, 80px);
  line-height: .96;
  letter-spacing: -.06em;
}
h1 em { color: var(--green); font-style: normal; }
.login-copy > p:not(.eyebrow) { max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.security-note {
  display: flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  margin-top: 42px;
  padding: 13px 16px;
  border: 1px solid rgba(168, 255, 120, .15);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(168, 255, 120, .035);
  font-size: 12px;
}
.security-note strong { display: block; margin-bottom: 3px; color: var(--text); }
.shield { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--bg); background: var(--green); font-weight: 800; }

.login-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
  backdrop-filter: blur(20px);
}
.card-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 27px; }
.card-heading .eyebrow { margin-bottom: 5px; }
.card-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.lock { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(103, 232, 249, .2); border-radius: 12px; color: var(--cyan); background: rgba(103, 232, 249, .05); }

form { display: grid; gap: 17px; }
label span { display: block; margin: 0 0 7px; color: var(--muted); font-size: 12px; }
input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, .025);
  font: inherit;
}
input:focus { border-color: rgba(168, 255, 120, .55); box-shadow: 0 0 0 3px rgba(168, 255, 120, .07); }
input[name="totp"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .2em; }
button {
  height: 49px;
  margin-top: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  color: #10130f;
  background: var(--green);
  font: inherit;
  font-weight: 750;
}
button span { float: right; }
button:hover { filter: brightness(1.05); }
.help { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.login-error { margin: -3px 0 20px; padding: 11px 12px; border: 1px solid rgba(255, 140, 140, .25); border-radius: 10px; color: var(--red); background: rgba(255, 140, 140, .06); font-size: 12px; line-height: 1.45; }
.hidden { display: none; }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: min(1180px, 90vw);
  margin: -34px auto 0;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .brand { margin-bottom: 55px; }
  .login-copy { text-align: center; }
  .brand, .security-note { margin-left: auto; margin-right: auto; }
  .login-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .login-card { width: min(100%, 520px); margin: 0 auto; }
  footer { margin-top: 10px; }
}

@media (max-width: 560px) {
  .login-shell { width: min(92vw, 460px); }
  h1 { font-size: 46px; }
  .login-card { padding: 24px 20px; }
  footer { flex-direction: column; gap: 6px; width: 90vw; }
}
