:root {
  color-scheme: dark;
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #080a0d;
  color: #f5f7f8;
  --bg: #080a0d;
  --panel: rgba(18, 21, 26, 0.88);
  --panel-strong: #111419;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f7f8;
  --muted: #8f959e;
  --muted-strong: #b9bec5;
  --accent: #d7f72f;
  --accent-pressed: #c7e627;
  --danger: #ff8d8d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.025), transparent 38%),
    linear-gradient(180deg, #090b0f 0%, #07090c 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-glow {
  position: fixed;
  left: -12vw;
  bottom: -34vh;
  width: 55vw;
  height: 62vh;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(183, 220, 43, 0.13), rgba(183, 220, 43, 0.035) 43%, transparent 72%);
  filter: blur(28px);
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, 1440px);
  height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 42px;
  overflow: hidden;
}

.header-brand img,
.card-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.language-button {
  min-width: 58px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d4d7db;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.language-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 164px);
  place-items: center;
  padding: 70px 24px 86px;
}

.auth-card {
  width: min(100%, 604px);
  min-height: 652px;
  padding: 58px 58px 46px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 26%),
    var(--panel);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
}

.card-brand {
  width: 154px;
  height: 50px;
  margin: 0 auto 36px;
  overflow: hidden;
}

.auth-heading {
  margin-bottom: 34px;
  text-align: center;
}

.auth-heading h1 {
  margin: 0;
  color: #f7f8f9;
  font-size: clamp(31px, 4vw, 39px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.auth-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.provider-button,
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 620;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.provider-button {
  gap: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: #f5f6f7;
}

.provider-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.045);
}

.provider-button:active,
.primary-button:active {
  transform: translateY(1px);
}

.google-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  background: conic-gradient(from -35deg, #4285f4 0 25%, #34a853 25% 47%, #fbbc05 47% 72%, #ea4335 72% 100%);
  background-clip: text;
  color: transparent;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  -webkit-background-clip: text;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 29px 0;
  color: #777d86;
}

.divider span {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.divider em {
  font-size: 14px;
  font-style: normal;
}

.email-form {
  display: grid;
  gap: 14px;
}

.input-shell {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: #7f858e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  pointer-events: none;
}

.input-shell input,
.otp-input {
  width: 100%;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  caret-color: var(--accent);
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

.input-shell input {
  padding: 0 18px 0 51px;
}

.input-shell input::placeholder,
.otp-input::placeholder {
  color: #6e747d;
  opacity: 1;
}

.input-shell input:hover,
.otp-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.input-shell input:focus,
.otp-input:focus {
  border-color: rgba(215, 247, 47, 0.62);
  background: rgba(255, 255, 255, 0.028);
  outline: none;
}

.primary-button {
  border: 0;
  background: var(--accent);
  color: #0a0c0e;
}

.primary-button:hover {
  background: #e0fa49;
}

.primary-button:disabled,
.provider-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.turnstile-slot {
  min-height: 65px;
  overflow: hidden;
  border-radius: 10px;
}

.otp-heading {
  margin-top: 48px;
}

.otp-input {
  padding: 0 18px;
  text-align: center;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0.32em;
}

.text-button {
  justify-self: center;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 14px;
}

.text-button:hover {
  color: #fff;
}

.status-message {
  min-height: 21px;
  margin: 22px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.status-message[data-tone="error"] {
  color: var(--danger);
}

.status-message[data-tone="success"] {
  color: #cfe86a;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 88px;
  padding: 20px 24px 30px;
  color: #777d85;
  font-size: 13px;
}

.site-footer a {
  transition: color 120ms ease;
}

.site-footer a:hover {
  color: #c7cbd0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 32px);
    height: 68px;
  }

  .header-brand {
    width: 118px;
  }

  .auth-shell {
    min-height: calc(100vh - 144px);
    padding: 38px 16px 54px;
  }

  .auth-card {
    min-height: 0;
    padding: 42px 24px 34px;
    border-radius: 18px;
  }

  .card-brand {
    width: 142px;
    margin-bottom: 30px;
  }

  .auth-heading {
    margin-bottom: 28px;
  }

  .auth-heading h1 {
    font-size: 30px;
  }

  .auth-heading p {
    min-height: 48px;
    margin-top: 12px;
    font-size: 15px;
  }

  .provider-button,
  .primary-button,
  .input-shell input,
  .otp-input {
    height: 56px;
  }

  .site-footer {
    flex-wrap: wrap;
    min-height: 76px;
    padding-bottom: 24px;
  }
}

@media (max-width: 390px) {
  .auth-card {
    padding-inline: 18px;
  }

  .provider-button {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
