:root {
  --fg: #e6e8eb;
  --muted: #9aa0a6;
  --accent: #60a5fa;
  --lighter-blue-black: #04293c;
  --light-blue-black: #053d58;
  --gradient-blend: #021e2c;
  --action: #288691;
  --noise-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 12 -5'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  background: var(--gradient-blend);
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 20% 25%, rgba(0, 0, 0, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 95% 75% at 80% 80%, rgba(5, 61, 88, 0.7) 0%, transparent 70%),
    linear-gradient(to bottom right, #000, var(--light-blue-black));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.backdrop::after {
  position: absolute;
  inset: 0;
  background-image: var(--noise-image);
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

body > *:not(.backdrop) {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.center-content {
  display: flex;
  align-items: center;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 500px);
  padding: 24px 0 48px;
}

.logo {
  display: block;
  width: min(52vw, 200px);
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
  padding: 8px 8px 0;
}

.primary-action {
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.auth-content {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.auth-content h2,
.auth-content p {
  padding-inline: 8px;
}

.status-panel p {
  color: #fff;
  font-size: 15px;
}

.message {
  max-width: 480px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.message.with-guidance {
  margin-bottom: 8px;
}

.sign-in-guidance {
  margin-bottom: 24px;
  color: #fff;
  font-size: 15px;
}

.root-state .logo {
  margin-right: auto;
  margin-left: auto;
}

.root-state .message {
  text-align: center;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  cursor: pointer;
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--bento-color) 88%, #000 12%), var(--bento-color));
  background-color: var(--bento-color);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 6px 12px rgba(255, 255, 255, 0.2);
}

.primary-action {
  justify-content: space-between;
  width: min(100%, 250px);
  min-height: 52px;
  padding: 0 22px;
  --bento-color: var(--action);
}

.primary-action:hover {
  filter: brightness(1.15);
  text-decoration: none;
}

.primary-action:active {
  transform: translateY(1px);
}

.action-label,
.action-arrow {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.action-arrow {
  margin-left: 18px;
}

.status-panel {
  max-width: 500px;
  margin-top: 24px;
  color: #fff;
  text-align: left;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  padding-top: 46px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: inherit;
  white-space: nowrap;
}

.site-footer {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .container {
    padding: 30px 18px 20px;
  }

  h1 {
    font-size: 32px;
  }

  .primary-action {
    width: 100%;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
