:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #030915;
  color: #e5ebf6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;

  background:
    radial-gradient(
      ellipse 460px 440px at 50% 31%,
      #09265324,
      transparent 100%
    ),
    #030915;
}

.login {
  width: min(360px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 12.1vh, 112px) 0 38px;
}

.brand {
  text-align: center;
}

.logo-frame {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  overflow: hidden;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116px;
  height: auto;
  max-width: none;
  transform: translate(calc(-50% - 2px), -50%);
  display: block;
}

.brand h1 {
  margin: 13px 0 4px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -0.65px;
}

.brand > p {
  margin: 0;
  color: #a0acc0;
  font-size: 12px;
  line-height: 20px;
}

.login-card {
  margin-top: 26px;
  padding: 25px 25px 26px;
  min-height: 200px;
  background: #09172b;
  border: 1px solid #123365;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 45px #0000001c;
}

.login-description {
  margin: 0;
  color: #aebcd1;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  min-height: 48px;
  margin-top: 19px;
  padding: 12px 10px;

  border: 1px solid #508bff;
  border-radius: 18px;
  background: #2865e7;
  box-shadow: 0 4px 12px #0a3c9645;

  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 20px;
  text-decoration: none;

  transition:
    background-color 0.16s,
    box-shadow 0.16s;

  -webkit-tap-highlight-color: transparent;
}

.discord-button:hover {
  background: #3374f4;
  box-shadow: 0 4px 16px #0a3c9670;
}

.discord-button:active {
  background: #2058cc;
}

.discord-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #afcaff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.login-note {
  margin: 12px 0 0;
  color: #8597b4;
  font-size: 10px;
  line-height: 16px;
}

.data-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #112e58;
  border-radius: 5px;
  background: #071223;
  color: #899ab6;
  font-size: 9px;
  line-height: 15.5px;
}

.data-notice summary {
  color: #b4c1d7;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

.data-notice details[open] {
  min-height: 173px;
}

.notice-content p {
  margin: 8px 0 0;
}

.notice-content strong {
  color: #a4b5cf;
  font-weight: 650;
}

footer {
  margin-top: 14px;
  color: #7587a3;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
}

.login-error {
  padding: 10px;
  margin: 14px 0 0;
  border: 1px solid #bf6b754a;
  border-radius: 7px;
  background: #55233036;
  color: #ffc7cf;
  font-size: 12px;
  line-height: 18px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #94bcff;
  outline-offset: 4px;
}

::selection {
  background: #2054aa;
  color: white;
}

@media (max-width: 420px) {
  .login {
    padding-top: 44px;
  }

  .brand > p {
    font-size: 11px;
  }

  .login-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discord-button {
    transition: none;
  }
}