/* ============================================================
   WOLONG — auth v2
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: min(740px, calc(100vh - 2 * clamp(14px, 3vw, 36px)));
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow-2);
}

/* left visual */

.auth-visual {
  position: relative;
  overflow: hidden;
  background: #06060b;
  min-height: 540px;
}

.auth-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.auth-visual-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 10, 0.62) 0%, rgba(5, 5, 10, 0.12) 34%, rgba(5, 5, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 5, 10, 0.35), transparent 55%);
}

.auth-visual-in {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 34px;
  color: #fff;
}

.brand-light .brand-txt span { color: rgba(255, 255, 255, 0.55); }

.auth-quote { margin-top: auto; max-width: 390px; }

.auth-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
}

.auth-quote h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.auth-quote p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.auth-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }

.auth-tags span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.86);
}

/* right form */

.auth-panel {
  display: flex;
  flex-direction: column;
  padding: 26px clamp(24px, 4vw, 46px) 34px;
  background: var(--panel);
}

.auth-top { display: flex; align-items: center; justify-content: space-between; }

.auth-card { width: 100%; max-width: 364px; margin: auto; }

.auth-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(128, 128, 160, 0.09);
}

.auth-tabs button {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.auth-tabs button:hover { color: var(--text); }

.auth-tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--panel-solid);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; }

.auth-card .sub { margin-top: 10px; font-size: 13px; color: var(--muted); }

.form { margin-top: 28px; display: grid; gap: 16px; }

.input-wrap { position: relative; }

.input-big {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(128, 128, 160, 0.06);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.input-big:focus {
  border-color: rgba(91, 120, 255, 0.7);
  background: var(--panel-hover);
  box-shadow: 0 0 0 4px rgba(91, 120, 255, 0.12);
}

.input-big::placeholder { color: var(--dim); }

.input-wrap .eye {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--dim);
}

.input-wrap .eye:hover { color: var(--text); background: rgba(128, 128, 160, 0.12); }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.check input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: rgba(128, 128, 160, 0.08);
}

.check input:checked {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2.5px var(--bg);
}

.forgot { color: var(--blue-2); }
.forgot:hover { color: var(--text); }

.form-error {
  display: none;
  padding: 10px 13px;
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-left: 2px solid var(--red);
  border-radius: 12px;
  background: rgba(255, 77, 109, 0.08);
  font-size: 12px;
  color: var(--red-2);
}

.form-error.on { display: block; }

.auth-note { margin-top: 4px; font-size: 11.5px; line-height: 1.8; color: var(--dim); }

.auth-switch {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-switch a { color: var(--blue-2); }
.auth-switch a:hover { color: var(--text); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-visual { min-height: 260px; }
  .auth-visual-in { padding: 24px; }
  .auth-quote { max-width: none; }
  .auth-quote h2 { font-size: 26px; margin-top: 20px; }
  .auth-quote p, .auth-tags { display: none; }
  .auth-panel { padding: 22px 22px 30px; }
  .auth-card { max-width: none; }
  .auth-top { margin-bottom: 20px; }
}

@media (max-width: 480px) {
  .auth-visual { min-height: 200px; }
  .auth-quote h2 { font-size: 22px; }
  .auth-visual .brand-txt { display: none; }
  .auth-card h1 { font-size: 26px; }
}

/* ---- 找回密码弹层 ---- */
.auth-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 20px; background: rgba(4, 5, 10, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.auth-modal[hidden] { display: none; }
.auth-modal-card {
  width: 100%; max-width: 460px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel-solid, #101018); color: var(--text, #eef0f6);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); overflow: hidden;
}
.auth-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px;
}
.auth-modal-head b { font-size: 15px; }
.auth-modal-x {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: none; color: inherit; cursor: pointer; font-size: 12px;
}
.auth-modal-body { padding: 0 18px 18px; font-size: 13px; line-height: 1.8; }
.auth-modal-body p { margin: 0 0 10px; }
.auth-modal-body ol { margin: 0 0 12px; padding-left: 20px; }
.auth-modal-body li { margin-bottom: 8px; }
.auth-modal-body code {
  font-family: var(--font-mono, monospace); font-size: 12px;
  padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08);
}
.auth-modal-note { font-size: 12px; opacity: 0.72; }
.auth-modal-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
