/* Only the base resets used by this page, without Tailwind or app styles. */
* {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
  letter-spacing: inherit;
  border: 0;
  background: transparent;
}

img {
  display: block;
  vertical-align: middle;
  max-width: 100%;
}

#menu {
  display: contents;
}

.page {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at 50% 15%, #102b49 0%, transparent 60%),
    #070e19;
}

.panel {
  width: 100%;
  max-width: 384px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 28px 24px 24px;
  border: 1px solid #355b91;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, #2374b580 0%, transparent 46%),
    linear-gradient(155deg, #1c3659 0%, #101f37 40%, #091424 100%);
  box-shadow:
    inset 0 1px 0 #a7d6ff38,
    inset 0 -1px 0 #3465a533,
    0 24px 64px #00000055;
}

.logo {
  width: 224px;
  max-width: 100%;
  height: auto;
  align-self: center;
  margin: 0 0 10px;
  border-radius: 50%;
  box-shadow: 0 0 28px #00b7ff20;
}

.logo img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 14px;
  border: 1px solid #416da9;
  border-radius: 16px;
  background: linear-gradient(180deg, #294979 0%, #132f59 48%, #0b2042 100%);
  box-shadow: inset 0 1px 0 #c0ddff38, 0 4px 12px #020b192b;
  color: #f4f8ff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.button:disabled {
  border-color: #344c70;
  background: linear-gradient(180deg, #223958, #101f35);
  box-shadow: inset 0 1px 0 #a8c9f01a;
  color: #afc0d8;
  cursor: not-allowed;
}

.logo:focus-visible,
.button:focus-visible,
.footerLink:focus-visible {
  outline: 2px solid #68deff;
  outline-offset: 4px;
}

.footerLink {
  align-self: center;
  padding: 8px 16px;
  color: #b6cae5;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 8px;
}

.footerLink:disabled {
  cursor: not-allowed;
}

@media (hover: hover) {
  a.button:hover {
    border-color: #78baff;
    box-shadow: inset 0 1px 0 #c0ddff55, 0 0 18px #4389ee26;
  }

  a.footerLink:hover {
    color: #f4f8ff;
    text-decoration: underline;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 24px 20px 18px;
    gap: 12px;
  }

  .logo {
    width: 184px;
  }

  .button {
    min-height: 60px;
    font-size: 17px;
  }
}

@media (max-height: 800px) {
  .page {
    padding-block: 16px;
  }

  .panel {
    padding: 20px;
    gap: 8px;
  }

  .logo {
    width: clamp(96px, 22svh, 160px);
    margin-bottom: 4px;
  }

  .button {
    min-height: 52px;
    padding-block: 12px;
    font-size: 16px;
  }

  .footerLink {
    padding-block: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
