:root {
  --bg-top: #eef4ff;
  --bg-bottom: #f8fbff;
  --surface: rgba(255, 255, 255, 0.95);
  --ink: #10213a;
  --muted: #61748f;
  --line: rgba(37, 99, 235, 0.12);
  --blue: #2563eb;
  --danger: #b91c1c;
  --shadow: 0 20px 42px rgba(37, 99, 235, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.auth-shell {
  width: min(720px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0 64px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.banner-panel,
.auth-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.banner-panel {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 32px;
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

.banner-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -26px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 68%);
  pointer-events: none;
}

.banner-copy {
  margin: 0;
  color: #4d627d;
  font-size: 16px;
  line-height: 1.7;
}

.auth-panel--form {
  padding: 28px;
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.auth-tab {
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.auth-status {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  line-height: 1.6;
}

.auth-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.auth-form {
  display: none;
  margin-top: 22px;
}

.auth-form.is-active {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}

.field input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.34);
}

.submit-button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .auth-shell {
    padding: 24px 0 40px;
  }

  .banner-panel,
  .auth-panel--form {
    padding: 24px;
  }

  .section-heading h1 {
    font-size: 26px;
  }
}
