: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: 200px;
  height: 200px;
  border-radius: 50%;
  border: 44px solid rgba(83, 97, 246, 0.15);
  filter: blur(1px);
}

.auth-orbit-left {
  left: -150px;
  bottom: 64px;
}

.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 {
  margin: 0 0 38px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

form {
  display: grid;
  gap: 16px;
}

label,
.label-row {
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.label-row a {
  color: var(--blue);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  color: #2f3849;
  padding: 0 22px;
  font-size: 16px;
}

input::placeholder {
  color: #c7ccd6;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(83, 97, 246, 0.12);
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  color: #333c4f;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

form button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  height: 60px;
  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: 38px;
  text-align: center;
  font-size: 16px;
}

.switch-link a {
  color: var(--blue);
  font-weight: 700;
}

.auth-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 44px;
  margin-top: 45px;
  color: #8791a3;
}

@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;
  }
}
