:root {
  --bg: #07100e;
  --panel: #0d1714;
  --panel-2: #111e1a;
  --line: rgba(255,255,255,.09);
  --text: #f4f8f6;
  --muted: #8fa39b;
  --muted-2: #647a72;
  --green: #21d07a;
  --green-strong: #00a884;
  --green-soft: rgba(33,208,122,.12);
  --danger: #ff6678;
  --shadow: 0 28px 80px rgba(0,0,0,.36);
  --radius: 22px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(430px, .92fr);
  overflow: hidden;
}

.login-hero {
  position: relative;
  min-height: 100vh;
  padding: 52px clamp(44px, 6vw, 96px);
  background:
    radial-gradient(circle at 18% 15%, rgba(33,208,122,.16), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(0,168,132,.10), transparent 34%),
    linear-gradient(145deg, #07110e 0%, #0a1612 56%, #07100e 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom right, #000 5%, transparent 84%);
}
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}
.hero-orb-one {
  width: 420px; height: 420px;
  top: -210px; right: -110px;
  background: radial-gradient(circle, rgba(33,208,122,.17), rgba(33,208,122,0));
}
.hero-orb-two {
  width: 360px; height: 360px;
  bottom: -190px; left: -130px;
  background: radial-gradient(circle, rgba(0,168,132,.12), rgba(0,168,132,0));
}
.hero-content {
  position: relative;
  z-index: 2;
  height: calc(100vh - 104px);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.brand-lockup, .mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--green), var(--green-strong));
  color: #04110c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.5px;
  box-shadow: 0 12px 34px rgba(33,208,122,.18);
}
.brand-name { font-weight: 790; font-size: 19px; letter-spacing: -.35px; }
.brand-caption { color: var(--muted); font-size: 12px; margin-top: 3px; }

.hero-copy {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 640px;
  padding: 58px 0 44px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero-copy h1 {
  margin: 20px 0 18px;
  max-width: 620px;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: .99;
  letter-spacing: -3.7px;
  font-weight: 760;
}
.hero-copy p {
  margin: 0;
  max-width: 570px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.metric-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(12px);
}
.metric-card strong { display: block; font-size: 13px; margin-bottom: 5px; }
.metric-card span:not(.metric-dot):not(.metric-icon) { color: var(--muted); font-size: 11px; line-height: 1.4; }
.metric-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.metric-dot.online { background: var(--green); box-shadow: 0 0 0 5px rgba(33,208,122,.09), 0 0 24px rgba(33,208,122,.45); }
.metric-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 42px clamp(32px, 5vw, 76px);
  background:
    radial-gradient(circle at 100% 0%, rgba(33,208,122,.055), transparent 24%),
    #09120f;
}
.mobile-brand { display: none; width: min(100%, 460px); margin-bottom: 36px; }
.login-card { width: min(100%, 460px); }
.login-heading { margin-bottom: 32px; }
.access-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  margin-bottom: 18px;
}
.access-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(33,208,122,.45); }
.login-heading h2 { margin: 0 0 9px; font-size: 31px; line-height: 1.12; letter-spacing: -1.1px; }
.login-heading p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

#login-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field label { color: #cbd8d3; font-size: 12px; font-weight: 650; }
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 50px 0 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap input::placeholder { color: #587067; }
.input-wrap input:focus {
  border-color: rgba(33,208,122,.56);
  background: rgba(255,255,255,.045);
  box-shadow: 0 0 0 4px rgba(33,208,122,.07);
}
.input-icon {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px;
  color: #6e877e;
  pointer-events: none;
}
.input-icon svg, .password-toggle svg, .security-note svg { width: 100%; height: 100%; }
.password-toggle {
  position: absolute;
  right: 10px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6e877e;
  cursor: pointer;
}
.password-toggle:hover { background: rgba(255,255,255,.05); color: var(--text); }
.login-error {
  min-height: 0;
  margin-top: -3px;
  padding: 0;
  color: #ff91a0;
  font-size: 12px;
  line-height: 1.45;
  transition: all .18s;
}
.login-error.visible {
  min-height: 40px;
  padding: 11px 13px;
  border: 1px solid rgba(255,102,120,.22);
  border-radius: 10px;
  background: rgba(255,102,120,.07);
}
.login-button {
  position: relative;
  height: 55px;
  margin-top: 2px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #24d67e, #00a884);
  color: #04110c;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0,168,132,.16);
  transition: transform .16s, filter .16s, box-shadow .16s;
}
.login-button:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 17px 42px rgba(0,168,132,.23); }
.login-button:active { transform: translateY(0); }
.login-button:disabled { cursor: wait; opacity: .76; transform: none; }
.button-arrow { position: absolute; right: 19px; top: 50%; transform: translateY(-52%); font-size: 19px; }
.button-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(4,17,12,.28); border-top-color: #04110c; border-radius: 50%; animation: spin .7s linear infinite; }
.login-button.loading .button-label, .login-button.loading .button-arrow { display: none; }
.login-button.loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.55;
}
.security-note svg { width: 18px; height: 18px; flex: 0 0 auto; color: #6d877d; margin-top: 1px; }
.login-panel footer {
  width: min(100%, 460px);
  margin-top: 44px;
  color: #52665e;
  font-size: 10px;
  letter-spacing: .45px;
  text-align: center;
}

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-panel { min-height: 100vh; padding: 36px 24px; }
  .mobile-brand { display: flex; }
}
@media (max-width: 520px) {
  .login-panel { justify-content: flex-start; padding-top: 30px; }
  .mobile-brand { margin-bottom: 56px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .login-heading h2 { font-size: 28px; }
  .login-panel footer { margin-top: auto; padding-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
