:root {
  color-scheme: dark;
  --bg: #0b0c14;
  --shell: rgba(11, 12, 20, .86);
  --card: #141624;
  --card-2: #171a2a;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(75, 224, 255, .24);
  --text: #f6f8fb;
  --muted: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .42);
  --accent: #12b4ee;
  --accent-2: #4be0ff;
  --danger: #ff7890;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 15%, rgba(18, 180, 238, .15), transparent 43%),
    linear-gradient(180deg, #0b0c14 0%, #090a11 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(18, 180, 238, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 180, 238, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 64% at 50% 36%, #000, transparent 78%);
}

.header {
  position: relative;
  z-index: 2;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: var(--shell);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand img { width: 38px; height: 38px; }
.brand span span { color: var(--accent); }

.environment {
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--accent-2);
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(20, 22, 36, .78);
  font-size: 13px;
}

.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(75, 224, 255, .9);
}

.kicker, .eyebrow {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
}

h1 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 18px rgba(75, 224, 255, .22));
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--faint);
  font-size: 13px;
}

.status span { color: var(--accent-2); }

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(23, 26, 42, .96), rgba(12, 14, 24, .97));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46);
}

.card-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -170px;
  right: -80px;
  border-radius: 50%;
  background: rgba(18, 180, 238, .2);
  filter: blur(52px);
}

.login-card h2 {
  margin: 10px 0 8px;
  font-size: 29px;
  letter-spacing: -.025em;
}

.hint { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.error {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 120, 144, .32);
  border-radius: 10px;
  background: rgba(255, 120, 144, .08);
  color: #ffb1bf;
  font-size: 13px;
  line-height: 1.45;
}

form { display: grid; }

label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 48px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(7, 9, 16, .58);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: rgba(75, 224, 255, .66);
  box-shadow: 0 0 0 3px rgba(18, 180, 238, .12);
}

button {
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: #061018;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font: 750 15px/1 inherit;
  box-shadow: 0 12px 30px rgba(18, 180, 238, .22);
}

button span { margin-left: 8px; }

.notice {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; padding: 48px 0; }
  .intro { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .status { justify-content: center; }
}

@media (max-width: 520px) {
  .header { height: 68px; padding: 0 18px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .shell { width: min(100% - 28px, 1100px); padding: 36px 0; }
  h1 { font-size: 35px; }
  .environment { display: none; }
}
