:root {
  --blue: #5361f6;
  --ink: #171d2f;
  --muted: #9aa2b1;
  --line: #e5e8ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-page {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 100vh;
  overflow: hidden;
  padding: 35px 20px 35px;
  background:
    radial-gradient(circle at 18% 25%, rgba(203, 235, 255, 0.88), transparent 23%),
    radial-gradient(circle at 72% 28%, rgba(202, 240, 252, 0.72), transparent 22%),
    linear-gradient(115deg, #eef9ff 0%, #fff8f6 48%, #f9fcff 100%);
}

.auth-orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 44px solid rgba(83, 97, 246, 0.15);
  filter: blur(1px);
}

.auth-orbit-left {
  left: -150px;
  bottom: 150px;
}

.auth-orbit-right {
  right: -105px;
  top: 210px;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: #12356f;
  font-weight: 900;
  margin-bottom: 56px;
}

.brand-mark {
  font-size: 62px;
  font-style: italic;
  letter-spacing: -2px;
}

.brand-mark span {
  color: #ffbb17;
}

.brand small {
  margin-left: 15px;
  color: #ff9d21;
  font-size: 18px;
  font-weight: 800;
}

.lang-toggle {
  position: absolute;
  z-index: 2;
  right: 42px;
  top: 36px;
  min-width: 54px;
  height: 34px;
  border: 1px solid rgba(83, 97, 246, 0.25);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(670px, 100%);
  border-radius: 18px;
  background: #fff;
  padding: 35px 20px 35px;
  box-shadow: 0 20px 70px rgba(33, 43, 83, 0.08);
}

.auth-card h1 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 30px;
  line-height: 1;
}

.auth-card > p:not(.terms) {
  margin: 0 0 38px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  color: #2f3849;
  padding: 0 22px;
  font-size: 16px;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(83, 97, 246, 0.12);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.two-columns div {
  display: grid;
  gap: 16px;
}

form button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 60px;
  margin-top: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(83, 97, 246, 0.22);
  cursor: pointer;
}

.switch-link {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
}

.switch-link a,
.terms a {
  color: var(--blue);
  font-weight: 700;
}

.terms {
  margin: 5px 0 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .auth-page {
    padding-top: 44px;
  }

  .brand {
    margin-bottom: 36px;
  }

  .brand-mark {
    font-size: 44px;
  }

  .brand small {
    font-size: 13px;
  }

  .auth-card {
    padding: 42px 24px;
  }

  .auth-card h1 {
    font-size: 34px;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }
}
