
:root {
  color-scheme: dark;
  --bg: #080b13;
  --card: rgba(17, 23, 38, 0.96);
  --line: rgba(145, 159, 193, 0.16);
  --text: #f4f7ff;
  --muted: #919aae;
  --subtle: #68738a;
  --accent: #6d63f4;
  --accent-2: #7e70ff;
  --mint: #53e0b6;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(90, 75, 216, .13), transparent 34%),
    linear-gradient(180deg, #080b13 0%, #070a11 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-glow {
  position: fixed;
  pointer-events: none;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .12;
}
.login-glow-one { top: -180px; left: -140px; background: #6659ff; }
.login-glow-two { right: -180px; bottom: -220px; background: #329fd8; }

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.login-card {
  width: min(100%, 520px);
  min-width: 0;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .025);
  text-align: center;
}

.login-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(139, 124, 255, .38);
  background: linear-gradient(145deg, rgba(109, 99, 244, .9), rgba(76, 56, 153, .85));
  box-shadow: 0 14px 36px rgba(92, 76, 230, .18);
}

.login-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #9a8cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.login-copy {
  max-width: 390px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.discord-login-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border-radius: 13px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), #5865f2);
  box-shadow: 0 15px 34px rgba(88, 101, 242, .19);
  transition: transform 150ms ease, filter 150ms ease;
}

.discord-login-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.discord-login-button svg { width: 20px; }

.permission-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: rgba(255,255,255,.018);
}

.permission-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--mint);
  background: rgba(83, 224, 182, .1);
}

.permission-icon svg { width: 17px; }

.permission-card strong {
  display: block;
  margin: 1px 0 5px;
  font-size: 13px;
}

.permission-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.55;
}

.secure-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: #59657a;
  font-size: 10px;
  letter-spacing: .13em;
}

.secure-label > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(83,224,182,.45);
}

.legal-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #586278;
  font-size: 11px;
  flex-wrap: wrap;
}

.legal-links a {
  color: #78849a;
  text-decoration: none;
}
.legal-links a:hover { color: #aeb8ca; }

@media (max-width: 600px) {
  .login-page { padding: 22px 14px; }
  .login-card { padding: 32px 22px; border-radius: 20px; }
  h1 { font-size: clamp(29px, 10vw, 38px); }
  .discord-login-button { padding-inline: 14px; }
}
