:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --text: #151826;
  --muted: #6f778b;
  --line: #e8ecf4;
  --blue: #1f6cff;
  --blue-dark: #144fd7;
  --orange: #ff8a21;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 90%;
  margin: 0 auto;
}

.auth-main {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px 0 36px;
}

.auth-banner {
  border-radius: 18px;
  border: 1px solid #dbe5ff;
  box-shadow: 0 8px 30px rgba(31, 108, 255, 0.1);
  padding: 34px 30px;
  color: #fff;
  background: linear-gradient(125deg, #1b55eb, #2f86ff 55%, #0d47cf, #1b55eb);
  background-size: 220% 220%;
  animation: authBannerShift 9s ease-in-out infinite;
}

@keyframes authBannerShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.auth-banner p {
  margin: 0;
  opacity: 0.95;
}

.auth-banner h1 {
  margin: 12px 0 10px;
  font-size: 38px;
  line-height: 1.18;
}

.auth-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  margin-bottom: 10px;
  font-size: 15px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(32, 53, 90, 0.08);
  padding: 24px 22px;
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-head h2 {
  margin: 0;
  font-size: 26px;
}

.auth-head a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

.auth-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form label {
  font-size: 13px;
  color: #364163;
  margin-bottom: 5px;
  display: inline-block;
}

.required-mark {
  color: #e53935;
  font-weight: 700;
  margin-right: 4px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: #91b8ff;
  box-shadow: 0 0 0 3px rgba(31, 108, 255, 0.14);
}

.field-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4d5775;
}

.inline-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.inline-row input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.inline-row a {
  color: var(--blue);
  text-decoration: none;
}

.terms {
  font-size: 13px;
  color: #4d5775;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
}

.terms input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.btn-primary {
  border: 0;
  border-radius: 10px;
  height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid #ffd7b1;
  background: #fff7ef;
  color: #ba5e13;
  border-radius: 10px;
  height: 42px;
  font-weight: 700;
  cursor: pointer;
}

.divider {
  position: relative;
  text-align: center;
  color: #99a3bd;
  font-size: 12px;
  margin: 4px 0;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  border-top: 1px solid var(--line);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.auth-footer {
  margin-top: 6px;
  font-size: 12px;
  color: #8b95af;
  text-align: center;
}

@media (max-width: 980px) {
  .auth-main {
    grid-template-columns: 1fr;
  }

  .auth-banner {
    order: 2;
  }
}

@media (max-width: 700px) {
  .field-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .auth-main {
    min-height: auto;
    gap: 16px;
    padding: 18px 0 28px;
  }

  .auth-banner,
  .auth-card {
    padding: 22px 18px;
  }

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

  .auth-head,
  .inline-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .auth-banner h1,
  .auth-head h2 {
    font-size: 26px;
  }

  .auth-banner p,
  .auth-points li,
  .auth-sub {
    font-size: 13px;
  }
}
