/* ============================================================
   SOLARA · 曦图 — entrance
   ============================================================ */
.auth-body {
  min-height: 100svh;
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

.auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
}

.auth-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.6;
}

.auth-glow--one {
  width: 560px;
  height: 560px;
  top: -260px;
  left: 30%;
  background: radial-gradient(circle, rgba(248, 153, 72, 0.32), transparent 68%);
}

.auth-glow--two {
  width: 640px;
  height: 640px;
  bottom: -380px;
  right: 8%;
  background: radial-gradient(circle, rgba(242, 107, 29, 0.16), transparent 66%);
}

/* ---------------------------------- header --------------------------------- */

.auth-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 44px 0;
  pointer-events: none;
}

.auth-top > * {
  pointer-events: auto;
}

.auth-top .brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 11px;
}

.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.auth-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.12);
}

.top-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.55);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.top-switch:hover {
  color: var(--orange-deep);
  border-color: #e9b187;
  background: #fff9f2;
}

.top-switch .icon {
  width: 14px;
  height: 14px;
}

/* ---------------------------------- layout --------------------------------- */

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.33fr) minmax(450px, 1fr);
  min-height: 100svh;
}

.auth-editorial {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 118px 46px 30px;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 74% 8%, rgba(248, 163, 86, 0.17), transparent 62%),
    radial-gradient(720px 480px at -8% 96%, rgba(242, 107, 29, 0.09), transparent 64%),
    linear-gradient(160deg, #fdf9f3 0%, #fbf5ed 52%, #f8eee2 100%);
}

.auth-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.auth-editorial::after {
  content: "SOLARA";
  position: absolute;
  right: -18px;
  bottom: 52%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right bottom;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.9em;
  color: rgba(110, 79, 55, 0.22);
  pointer-events: none;
}

.auth-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  animation: rise-in 0.9s var(--ease-out) both;
}

.auth-copy .eyebrow {
  margin-bottom: 25px;
  animation: rise-in 0.9s 0.06s var(--ease-out) both;
}

.auth-copy h1 {
  font-size: clamp(58px, 5.35vw, 83px);
  color: #2a1c13;
  letter-spacing: -0.055em;
  margin-left: -4px;
}

.auth-copy h1 span {
  position: relative;
  background: linear-gradient(104deg, #e25308 4%, #f17925 52%, #ed9957 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-copy h1 span::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 8%;
  bottom: 0.02em;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 83, 8, 0.32), transparent);
}

.auth-lead {
  margin-top: 27px;
  max-width: 435px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  animation: rise-in 0.9s 0.14s var(--ease-out) both;
}

.auth-micro {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 32px;
  animation: rise-in 0.9s 0.22s var(--ease-out) both;
}

.auth-micro span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.auth-micro b {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.04em;
}

/* --------------------------------- art stage -------------------------------- */

.art-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 300px;
  max-height: 380px;
  width: 100%;
  max-width: 680px;
  margin-top: 18px;
  animation: fade-in 1.2s 0.28s var(--ease-soft) both;
}

.art-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 22%;
  top: -34%;
  border: 1px solid rgba(186, 118, 63, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.art-orbit::after {
  content: "";
  position: absolute;
  inset: 44px;
  border: 1px dashed rgba(186, 118, 63, 0.11);
  border-radius: 50%;
}

.art-index {
  position: absolute;
  left: 6px;
  top: 8px;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(110, 79, 55, 0.5);
  z-index: 5;
}

.art-index span {
  margin-left: 5px;
  color: rgba(110, 79, 55, 0.3);
}

.art-tile {
  position: absolute;
  margin: 0;
  padding: 6px;
  border-radius: 15px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow:
    0 36px 60px -38px rgba(67, 38, 17, 0.55),
    0 1px 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}

.art-tile:hover {
  z-index: 10;
  transform: rotate(calc(var(--rot, 0deg) + 1.2deg)) translateY(-6px) scale(1.018);
}

.art-tile img {
  width: 100%;
  height: calc(100% - 18px);
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(0.96) contrast(1.01);
}

.art-tile figcaption {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px;
  color: rgba(88, 58, 37, 0.72);
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.art-tile figcaption span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 500;
}

.art-tile--a {
  --rot: -3.2deg;
  left: 4.5%;
  top: 32px;
  width: 188px;
  height: 282px;
  z-index: 3;
  animation: float-a 8.5s ease-in-out infinite alternate;
}

.art-tile--b {
  --rot: 2.6deg;
  left: 33.5%;
  top: 64px;
  width: 190px;
  height: 220px;
  z-index: 2;
  animation: float-b 9.5s 0.6s ease-in-out infinite alternate;
}

.art-tile--c {
  --rot: 4.8deg;
  left: 61%;
  top: 20px;
  width: 172px;
  height: 204px;
  z-index: 1;
  animation: float-c 10.5s 1.2s ease-in-out infinite alternate;
}

.art-seal {
  position: absolute;
  right: 2.4%;
  top: 95px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(150deg, #f4802b, #e95d0e);
  color: #fff6eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 20px 36px -22px rgba(217, 81, 10, 0.62);
  transform: rotate(7deg);
  z-index: 4;
}

.art-seal svg {
  width: 22px;
  height: 22px;
  opacity: 0.88;
}

.art-seal span {
  font-family: var(--font-sans);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-align: center;
}

@keyframes float-a {
  from {
    transform: rotate(-3.2deg) translateY(0);
  }
  to {
    transform: rotate(-2.1deg) translateY(-9px);
  }
}

@keyframes float-b {
  from {
    transform: rotate(2.6deg) translateY(0);
  }
  to {
    transform: rotate(3.3deg) translateY(-12px);
  }
}

@keyframes float-c {
  from {
    transform: rotate(4.8deg) translateY(0);
  }
  to {
    transform: rotate(4.2deg) translateY(-7px);
  }
}

/* --------------------------------- footer ---------------------------------- */

.auth-editorial-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(189, 164, 140, 0.23);
  margin-top: 4px;
}

.foot-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(110, 79, 55, 0.48);
}

.foot-tags i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(242, 107, 29, 0.5);
}

.auth-editorial-foot p {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(110, 79, 55, 0.42);
  white-space: nowrap;
}

/* ---------------------------------- panel ---------------------------------- */

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding: 116px 48px 27px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 100% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(420px 360px at 0% 100%, rgba(247, 222, 200, 0.34), transparent 70%),
    #fffcf8;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(219, 191, 164, 0.22);
  top: -290px;
  right: -250px;
  pointer-events: none;
}

.auth-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(219, 191, 164, 0.18);
  bottom: -160px;
  left: -140px;
  pointer-events: none;
}

.auth-panel-top {
  position: relative;
  z-index: 2;
  width: min(392px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fade-in 0.9s 0.12s var(--ease-soft) both;
}

.panel-kicker {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.panel-count {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.panel-count b {
  font-weight: 600;
  color: var(--orange);
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(392px, 100%);
  margin: auto 0;
  padding: 34px 0 4px;
  animation: rise-in 0.95s 0.16s var(--ease-out) both;
}

.form-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 27px;
}

.form-index {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--orange-deep);
  margin-top: 5px;
  flex: 0 0 auto;
}

.form-heading h2 {
  font-family: var(--font-cn-serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.form-heading p {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.005em;
}

.auth-tabs {
  position: relative;
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}

.auth-tab {
  position: relative;
  padding: 0 0 12px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.auth-tab:hover {
  color: var(--ink);
}

.auth-tab.is-active {
  color: var(--ink);
}

.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), #f7a267);
}

.auth-tab[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fade-in 0.35s var(--ease-soft) both;
}

.auth-form .field-label {
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.auth-form .input {
  height: 48px;
  background: #fbf5ed;
  border-color: transparent;
  font-size: 13px;
}

.auth-form .input:hover {
  border-color: #ead6c2;
}

.auth-form .input:focus {
  background: #fff;
  border-color: #f1a46d;
  box-shadow: 0 0 0 4px rgba(242, 107, 29, 0.08);
}

.auth-form .input-wrap > .icon {
  color: #b6a395;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -2px;
}

.form-security {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.form-security .icon {
  width: 13px;
  height: 13px;
  color: #b09c8b;
}

.form-hint {
  font-size: 10px;
  color: var(--ink-faint);
}

.auth-submit {
  margin-top: 2px;
  height: 50px;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.auth-submit .icon {
  transition: transform 0.25s var(--ease-out);
}

.auth-submit:hover .icon {
  transform: translateX(3px);
}

.auth-meta {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-meta-icon {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.auth-meta-icon .icon {
  width: 14px;
  height: 14px;
}

.auth-meta p {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auth-meta strong {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
}

.auth-meta b {
  color: var(--orange-deep);
  font-weight: 650;
}

.auth-panel-foot {
  position: relative;
  z-index: 2;
  width: min(392px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 7.5px;
  letter-spacing: 0.11em;
  color: var(--ink-faint);
  text-transform: uppercase;
  animation: fade-in 1s 0.4s var(--ease-soft) both;
}

.panel-foot-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-panel-foot span:last-child {
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(150, 128, 110, 0.65);
}

/* ------------------------------- registration ------------------------------ */

.auth-tabs.is-register .auth-tab.is-active::after {
  background: linear-gradient(90deg, var(--orange), #f6b478);
}

/* --------------------------------- responsive ------------------------------ */

@media (max-width: 1240px) {
  .auth-top {
    padding: 25px 32px 0;
  }

  .auth-editorial {
    padding: 112px 34px 28px;
  }

  .auth-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 1fr);
  }

  .auth-panel {
    padding-inline: 36px;
  }

  .auth-copy h1 {
    font-size: clamp(54px, 5.2vw, 72px);
  }

  .art-stage {
    transform: scale(0.92);
    transform-origin: left bottom;
  }
}

@media (max-width: 1024px) {
  .auth-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-editorial {
    min-height: 520px;
    padding: 106px 36px 30px;
  }

  .auth-copy {
    max-width: 700px;
  }

  .auth-copy h1 {
    font-size: clamp(56px, 8.6vw, 78px);
  }

  .auth-lead {
    max-width: 480px;
  }

  .art-stage {
    position: absolute;
    right: 26px;
    bottom: 60px;
    width: 350px;
    min-height: 250px;
    transform: scale(0.82);
    transform-origin: right bottom;
    opacity: 0.9;
  }

  .art-tile--a {
    left: 0;
    width: 150px;
    height: 224px;
  }

  .art-tile--b {
    left: 125px;
    width: 145px;
    height: 170px;
  }

  .art-tile--c,
  .art-seal {
    display: none;
  }

  .auth-editorial-foot {
    max-width: 50%;
  }

  .auth-panel {
    min-height: auto;
    padding: 48px 32px 30px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .auth-car {
    margin: 0 auto;
  }

  .auth-card {
    margin: 0 auto;
    padding-top: 26px;
  }

  .auth-panel-top {
    margin: 0 auto;
  }

  .auth-panel-foot {
    margin: 34px auto 0;
  }
}

@media (max-width: 760px) {
  .auth-top {
    padding: 20px 20px 0;
  }

  .auth-top .brand-mark {
    width: 32px;
    height: 32px;
  }

  .auth-top-actions {
    gap: 12px;
  }

  .auth-status {
    display: none;
  }

  .top-switch {
    height: 32px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .auth-glow {
    opacity: 0.45;
  }

  .auth-editorial {
    min-height: auto;
    padding: 95px 22px 25px;
  }

  .auth-editorial::after,
  .auth-editorial-foot,
  .art-stage {
    display: none;
  }

  .auth-copy .eyebrow {
    margin-bottom: 18px;
    font-size: 8.5px;
  }

  .auth-copy h1 {
    font-size: clamp(43px, 13vw, 59px);
    letter-spacing: -0.06em;
  }

  .auth-lead {
    margin-top: 20px;
    font-size: 12.5px;
    line-height: 1.85;
    max-width: 300px;
  }

  .auth-micro {
    margin-top: 22px;
    gap: 14px;
  }

  .auth-micro span {
    font-size: 10px;
  }

  .auth-panel {
    padding: 34px 22px 28px;
  }

  .auth-panel::before,
  .auth-panel::after {
    display: none;
  }

  .auth-panel-top {
    display: none;
  }

  .auth-card {
    padding-top: 0;
  }

  .form-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  .form-index {
    width: 29px;
    height: 29px;
    font-size: 8px;
  }

  .form-heading h2 {
    font-size: 25px;
  }

  .form-heading p {
    font-size: 11.5px;
  }

  .auth-tabs {
    margin-bottom: 20px;
  }

  .auth-form {
    gap: 14px;
  }

  .auth-form .input {
    height: 46px;
  }

  .form-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .form-hint {
    display: none;
  }

  .auth-meta {
    margin-top: 22px;
  }

  .auth-panel-foot {
    display: none;
  }
}

@media (max-height: 780px) and (min-width: 1025px) {
  .auth-editorial {
    padding-top: 104px;
  }

  .auth-panel {
    padding-top: 100px;
  }

  .auth-copy h1 {
    font-size: clamp(52px, 4.9vw, 68px);
  }

  .auth-lead {
    margin-top: 20px;
  }

  .auth-micro {
    margin-top: 22px;
  }

  .art-stage {
    min-height: 245px;
    transform: scale(0.86);
    transform-origin: left bottom;
  }

  .auth-card {
    padding-top: 20px;
  }

  .form-heading {
    margin-bottom: 21px;
  }

  .auth-meta {
    margin-top: 18px;
    padding-top: 14px;
  }
}
