@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("./fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: block;
  src: url("./fonts/InterVariable-Italic.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #151c27;
  --panel-strong: #1b2533;
  --border: rgba(70, 87, 116, 0.58);
  --text: #eef3ff;
  --muted: #aebbd0;
  --green: #4ee0a0;
  --green-rgb: 78, 224, 160;
  --blue-rgb: 92, 207, 230;
  --yellow: #ffd24d;
  --discord: #4850bd;
  --discord-hover: #525bcb;
  --radius-panel: 13px;
  --login-content-width: calc(100% - 18px);
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(var(--green-rgb), 0.045), transparent 28%),
    radial-gradient(circle at top left, rgba(var(--blue-rgb), 0.035), transparent 22%),
    linear-gradient(180deg, #0e151e 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.login-page::before {
  display: none;
}

.login-panel {
  position: relative;
  display: grid;
  width: min(410px, 100%);
  gap: 13px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(24, 32, 44, 0.94), rgba(17, 24, 34, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.login-panel::before {
  display: none;
}

.login-brand {
  display: inline-flex;
  width: var(--login-content-width);
  align-items: center;
  gap: 8px;
  justify-self: center;
  margin: 0;
  color: rgba(248, 250, 255, 1);
  font-size: 1.1rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.login-brand::before {
  width: 10px;
  min-width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-right-color: rgba(var(--green-rgb), 0.28);
  border-radius: 50%;
  color: var(--green);
  content: "";
  transform-origin: center;
  animation: login-brand-dot-spin 5.5s linear infinite;
}

.login-copy-stack,
.login-copy,
.login-note,
.login-status {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.login-copy-stack {
  display: grid;
  width: var(--login-content-width);
  gap: 5px;
  justify-self: center;
  margin-bottom: 8px;
}

.login-copy {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 680;
}

.login-note {
  color: rgba(174, 187, 208, 0.82);
  font-size: 0.83rem;
  font-weight: 520;
}

.login-status {
  color: var(--muted);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  width: var(--login-content-width);
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: var(--discord);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--discord-hover);
  outline: none;
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.login-button.is-loading {
  cursor: wait;
  opacity: 0.82;
  pointer-events: none;
  transform: none;
}

.login-button.is-disabled {
  background: var(--panel-strong);
  color: rgba(237, 243, 251, 0.54);
  cursor: not-allowed;
}

.login-button-mark {
  display: inline-grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  place-items: center;
  background: transparent;
  color: #ffffff;
  line-height: 1;
}

.login-discord-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.login-status {
  font-size: 0.88rem;
}

.login-status.is-error {
  color: var(--yellow);
}

@keyframes login-brand-dot-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-brand::before {
    animation: none;
  }
}

@media (max-width: 520px) {
  .login-page {
    align-items: start;
    padding: 16px;
  }

  .login-panel {
    margin-top: 26px;
    padding: 22px;
  }

  .login-brand {
    font-size: 1.1rem;
  }
}
