﻿    :root {
      color-scheme: dark;
      --bg: #0e1016;
      --panel: #1d2029;
      --line: #333746;
      --text: #f4f5f8;
      --muted: #a8adbd;
      --accent: #58c4dd;
      --discord: #5865f2;
    }
    * { box-sizing: border-box; }
    body {
      min-height: 100vh;
      margin: 0;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at 50% 42%, rgba(88, 101, 242, 0.24), transparent 34rem),
        linear-gradient(135deg, #0d1017, #171922 55%, #10131a);
      color: var(--text);
      font-family: Segoe UI, system-ui, sans-serif;
    }
    form {
      width: min(520px, calc(100% - 28px));
      display: grid;
      gap: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(29, 32, 41, 0.92);
      box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
      padding: 24px;
    }
    h1 {
      margin: 0 0 4px;
      font-size: 22px;
      text-align: center;
    }
    input, button {
      min-height: 38px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #151821;
      color: var(--text);
      padding: 0 10px;
    }
    button {
      cursor: pointer;
      background: #272b36;
    }
    button:hover { border-color: var(--accent); }
    .password-login {
      display: grid;
      gap: 12px;
    }
    .discord-login {
      width: 96px;
      height: 96px;
      justify-self: center;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: linear-gradient(180deg, #6370ff, var(--discord));
      box-shadow: 0 0 34px rgba(88, 101, 242, 0.54), inset 0 -8px 0 rgba(0, 0, 0, 0.08);
      color: white;
      text-decoration: none;
      transition: transform 120ms ease, filter 120ms ease;
    }
    .discord-login:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .discord-login svg { width: 66px; height: 66px; flex: 0 0 auto; }
    .divider {
      text-align: center;
      color: var(--muted);
      font-size: 13px;
    }
    .status {
      min-height: 18px;
      color: var(--muted);
      font-size: 13px;
    }

/* Modern Discord-only login */
:root {
  --text: #f8f7ff;
  --muted: #b9b4c8;
  --line: rgba(255, 255, 255, 0.12);
  --purple: #7c3cff;
  --lime: #d4ff4f;
  --discord: #5865f2;
}

body {
  padding: 28px;
  background:
    radial-gradient(circle at 16% 14%, rgba(216, 255, 79, 0.82), transparent 24rem),
    radial-gradient(circle at 72% 20%, rgba(161, 97, 255, 0.9), transparent 31rem),
    radial-gradient(circle at 54% 80%, rgba(108, 57, 255, 0.86), transparent 33rem),
    linear-gradient(135deg, #c9ef57 0%, #8b69f3 46%, #6b31ef 100%);
  font-family: Inter, Segoe UI, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
}

.login-shell {
  width: min(1080px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.91);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.44);
  overflow: hidden;
  padding: 18px;
}

.brand-panel,
.login-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  overflow: hidden;
}

.brand-panel {
  display: grid;
  align-content: space-between;
  padding: 28px;
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 60, 255, 0.72), transparent 62%);
}

.brand-mark,
.login-bot-avatar {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 14px;
  background: rgba(212, 255, 79, 0.16);
  border: 1px solid rgba(212, 255, 79, 0.4);
  object-fit: cover;
  box-shadow: 0 0 30px rgba(124, 60, 255, 0.42);
}

.brand-mark span {
  border-radius: 5px;
  background: linear-gradient(135deg, var(--lime), rgba(255, 255, 255, 0.72));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1, h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 520px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
  text-align: left;
}

h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.lede,
.muted,
.status {
  color: var(--muted);
  line-height: 1.55;
}

.lede {
  max-width: 480px;
  margin: 18px 0 0;
  font-size: 16px;
}

.login-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
}

.hero-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 42px rgba(124, 60, 255, 0.5);
}

.login-bot-avatar[src=""] {
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 23%),
    linear-gradient(135deg, var(--lime), var(--purple));
}

.discord-login {
  width: 100%;
  min-height: 54px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #e8e4ff);
  color: #08080d;
  font-weight: 750;
  box-shadow: 0 18px 40px rgba(124, 60, 255, 0.26);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.discord-login:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(124, 60, 255, 0.36);
}

.discord-login svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--discord);
}

@media (max-width: 820px) {
  body { padding: 14px; }
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 320px; }
}
