/* 延续原登录页的品牌渐变与六瓣花，授权中心表单增加柔和背景与卡片层次。 */
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #09090b;
  background: #fff;
  font-synthesis: none;
  --muted: #71717a;
  --blue: #0b5bb8;
  --border: #e4e4e7;
  --gradient: linear-gradient(
    148deg,
    #6da919 0%,
    #3f8c4e 24%,
    #0b5bb8 58%,
    #00408f 100%
  );
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.login-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.brand {
  position: relative;
  overflow: hidden;
  background-image: var(--gradient);
  padding: 56px 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.brand-mark {
  position: absolute;
  right: -96px;
  bottom: -112px;
  width: 544px;
  height: 544px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgb(255 255 255 / 10%);
  pointer-events: none;
}
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(64px);
}
.glow-top {
  top: -96px;
  left: -96px;
  width: 448px;
  height: 448px;
  opacity: 0.4;
  background: radial-gradient(circle, #a2cf53 0%, transparent 70%);
}
.glow-bottom {
  right: 0;
  bottom: 0;
  width: 384px;
  height: 384px;
  transform: translate(33%, 33%);
  opacity: 0.35;
  background: radial-gradient(circle, #3a86db 0%, transparent 70%);
}
.brand-logo,
.brand-content,
.brand-foot {
  position: relative;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 10%));
}
.brand-name {
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 12px;
  letter-spacing: 2.16px;
  line-height: 1.5;
  color: rgb(255 255 255 / 70%);
}
.brand-content {
  max-width: 512px;
}
.brand-content h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.375;
  font-weight: 600;
  letter-spacing: -0.75px;
  white-space: pre-line;
}
.brand-subline {
  margin: 16px 0 0;
  font-size: 15.2px;
  line-height: 1.625;
  color: rgb(255 255 255 / 75%);
}
.highlights {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.highlight-icon {
  margin-top: 2px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 12%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%);
}
.highlight-icon .icon {
  width: 18.4px;
  height: 18.4px;
}
.highlight-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.highlight-desc {
  font-size: 14px;
  line-height: 20px;
  color: rgb(255 255 255 / 65%);
  margin-top: 2px;
}
.brand-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  line-height: 16px;
  color: rgb(255 255 255 / 60%);
}
.licence {
  display: flex;
  align-items: center;
  gap: 6px;
}
.licence .icon {
  width: 14px;
  height: 14px;
}
.brand-foot .licence {
  flex-shrink: 0;
}
.panel {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgb(176 209 238 / 48%),
      transparent 58%
    ),
    radial-gradient(
      ellipse at 0% 100%,
      rgb(207 224 180 / 40%),
      transparent 55%
    ),
    #f3f7fa;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#7194ae 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  opacity: 0.13;
  mask-image: linear-gradient(to bottom, #000, transparent 50%, #000);
}
.panel-mark {
  position: absolute;
  width: 410px;
  height: 410px;
  right: -130px;
  top: -160px;
  fill: none;
  stroke: #0b5bb8;
  stroke-width: 0.65;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}
.panel-wordmark {
  position: absolute;
  top: 34px;
  left: 40px;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: #7d94a4;
}
.panel-wordmark strong {
  font-weight: 600;
  color: #486779;
}
.locale-switch {
  position: absolute;
  right: 32px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  border-radius: 6px;
  z-index: 1;
}
.locale-switch:hover {
  background: #f4f4f5;
  color: #18181b;
}
.panel-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 48px;
}
.form-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
  padding: 36px 36px 30px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 24px;
  background: rgb(255 255 255 / 90%);
  box-shadow:
    0 24px 64px -24px rgb(27 70 106 / 24%),
    0 2px 8px rgb(27 70 106 / 3%);
}
.form-eyebrow {
  margin-bottom: 8px;
  color: #53758b;
  font-size: 12px;
  letter-spacing: 1px;
}
.login-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.login-logo {
  display: block;
  width: 64px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.heading-copy {
  min-width: 0;
}
.form-heading {
  margin-bottom: 32px;
}
.form-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.form-heading p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 20px;
}
#login-form {
  display: grid;
  gap: 20px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 8px;
}
input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  font-size: 14px;
  color: inherit;
  background: #f8fafc;
}
input::placeholder {
  color: var(--muted);
}
input:focus-visible {
  outline: 3px solid rgb(11 91 184 / 16%);
  border-color: var(--blue);
}
input[aria-invalid="true"] {
  border-color: #b42318;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(11 91 184 / 30%);
  outline-offset: 3px;
}
.password-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.password-help {
  position: relative;
  font-size: 12px;
  color: var(--muted);
}
.password-help summary {
  cursor: pointer;
  list-style: none;
}
.password-help summary::-webkit-details-marker {
  display: none;
}
.password-help summary:hover {
  text-decoration: underline;
}
.password-help p {
  position: absolute;
  right: 0;
  top: 20px;
  width: 240px;
  max-width: 70vw;
  padding: 14px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgb(0 0 0 / 10%);
  z-index: 2;
  line-height: 1.6;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}
.password-toggle .icon {
  width: 18px;
  height: 18px;
}
.password-toggle[aria-pressed="true"] .eye-slash {
  display: none;
}
.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  cursor: pointer;
}
.remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(105deg, #146bbd, #0753a3);
  color: white;
  font-size: 15.2px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 7px 16px -7px rgb(11 91 184 / 55%);
}
.submit:hover {
  filter: brightness(1.1);
}
.submit:disabled {
  cursor: wait;
  opacity: 0.65;
}
.form-foot {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid #edf1f4;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.625;
}
.alert {
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.alert-error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}
.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b42318;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mobile-foot {
  display: none;
}
.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue);
  margin-bottom: 24px;
}
.success-icon .icon {
  width: 26px;
  height: 26px;
}
.account {
  padding: 16px;
  background: #f4f4f5;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.account span {
  color: var(--muted);
  font-size: 12px;
}
@media (min-width: 1280px) {
  .brand {
    padding-left: 64px;
    padding-right: 64px;
  }
  .brand-content h2 {
    font-size: 33.6px;
  }
}
@media (max-width: 1023px) {
  .login-shell {
    display: flex;
    flex-direction: column;
  }
  .brand {
    padding: 28px 24px;
    gap: 0;
    flex-shrink: 0;
  }
  .brand-content,
  .brand-foot,
  .glow {
    display: none;
  }
  .brand-logo img {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-tagline {
    font-size: 10.4px;
  }
  .brand-mark {
    width: 160px;
    height: 160px;
    right: -24px;
    bottom: -40px;
  }
  .panel {
    flex: 1;
  }
  .panel-content {
    padding: 72px 24px 32px;
  }
  .panel-wordmark {
    top: 28px;
    left: 26px;
  }
  .locale-switch {
    top: 12px;
    right: 16px;
  }
  .mobile-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 0 24px 24px;
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
  }
}
@media (max-width: 479px) {
  .panel-content {
    padding: 68px 16px 28px;
  }
  .form-wrap {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }
  .form-heading h1 {
    font-size: 23px;
  }
  .login-heading {
    gap: 14px;
  }
  .login-logo {
    width: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
