.auth-page { min-height: 100svh; overflow-x: hidden; }
.auth-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(420px, .75fr); }
.auth-visual {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px clamp(35px, 5vw, 82px);
  background:
    linear-gradient(90deg, rgba(4,12,10,.08) 40%, rgba(4,12,10,.9) 100%),
    linear-gradient(0deg, rgba(3,10,8,.86) 0%, transparent 48%),
    url("../images/jadefall-login.jpg") 38% center / cover no-repeat;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.03);
  background: radial-gradient(circle at 20% 40%, transparent, rgba(1,8,6,.2) 75%);
}
.auth-brand, .auth-story, .back-home { position: relative; z-index: 1; }
.auth-brand { align-self: flex-start; }
.auth-brand span { font-size: 13px; }
.auth-brand strong { font-size: 20px; }
.auth-story { max-width: 700px; margin-block: auto 6vh; }
.auth-story h1 { margin: 0; font-size: clamp(47px, 5.4vw, 80px); }
.auth-story > p:last-child { max-width: 540px; margin: 23px 0 0; color: #b5c1bb; font-size: 14px; }
.back-home { align-self: flex-start; color: #b2beb8; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.back-home span { display: inline-block; margin-right: 10px; color: var(--jade); transition: transform .2s; }
.back-home:hover span { transform: translateX(-4px); }

.auth-panel {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(35px, 4.5vw, 82px) 25px;
  background:
    radial-gradient(circle at 100% 0, rgba(40,135,97,.09), transparent 35%),
    #07110e;
  box-shadow: -35px 0 80px rgba(0,0,0,.3);
}
.auth-box { width: 100%; max-width: 460px; margin: auto; }
.auth-heading .eyebrow { margin-bottom: 15px; }
.auth-heading h2 { margin: 0; font-size: 42px; line-height: 1.1; }
.auth-heading > p:last-child { margin: 12px 0 33px; color: var(--muted); font-size: 13px; }
.auth-form label { display: block; margin-bottom: 8px; color: #cbd4cf; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; }
.label-row label { margin: 0; }
.label-row a { color: var(--jade); font-size: 10px; font-weight: 600; }
.field-wrap { position: relative; }
.field-wrap > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #6f8178;
  stroke-width: 1.5;
  transform: translateY(-50%);
  pointer-events: none;
}
.field-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 48px;
  outline: 0;
  border: 1px solid rgba(199,220,209,.14);
  border-radius: 0;
  background: rgba(10, 23, 39, .74);
  color: #f4f1e7;
  font: 13px var(--font-body);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field-wrap input::placeholder { color: #607269; }
.field-wrap input:focus { border-color: rgba(100,184,255,.65); background: rgba(17,38,31,.85); box-shadow: 0 0 0 3px rgba(100,184,255,.07); }
.field-wrap.invalid input { border-color: #d66f68; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #75887e;
  transform: translateY(-50%);
  cursor: pointer;
}
.password-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.password-toggle:hover { color: var(--jade); }
.field-error { min-height: 16px; margin: 5px 0 0; color: #e58a83; font-size: 10px; }
.check-row { display: flex !important; align-items: center; gap: 9px; margin: 17px 0 22px; cursor: pointer; }
.check-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--jade); }
.check-row span { color: #8e9d96; font-size: 10px; font-weight: 500; }
.auth-submit { width: 100%; justify-content: space-between; padding-inline: 21px; cursor: pointer; }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-divider { display: flex; align-items: center; gap: 15px; margin: 26px 0 20px; color: #64756c; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-register { width: 100%; }
.auth-help { margin: 26px 0 0; color: #697a72; font-size: 10px; text-align: center; }
.auth-help a { color: #a3b2ab; text-decoration: underline; text-underline-offset: 3px; }
.register-panel { padding-top: 45px; }
.register-panel .auth-heading > p:last-child { margin-bottom: 25px; }
.account-split { display: grid; gap: 8px; margin: -8px 0 22px; }
.account-split article { padding: 11px 13px; border: 1px solid rgba(176,218,255,.13); background: rgba(10, 23, 39, .62); }
.account-split strong { display: block; margin-bottom: 3px; color: #e7eee9; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.account-split span { display: block; color: #7f9188; font-size: 9px; line-height: 1.55; }
.account-split-login { margin-top: -12px; }
.register-panel .auth-form > label:not(.check-row) { margin-top: 12px; }
.register-panel .auth-form > label:first-child { margin-top: 0; }
.register-panel .field-wrap input { height: 50px; }
.register-panel .field-error { min-height: 12px; margin-top: 3px; }
.password-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.password-strength span { height: 2px; background: #1c3028; transition: background .2s; }
.password-strength[data-score="1"] span:nth-child(1) { background: #d66f68; }
.password-strength[data-score="2"] span:nth-child(-n+2) { background: #d9a65e; }
.password-strength[data-score="3"] span:nth-child(-n+3) { background: #b6ca6d; }
.password-strength[data-score="4"] span { background: var(--jade); }
.password-hint { margin: 6px 0 0; color: #65766e; font-size: 9px; }
.terms-row { align-items: flex-start; margin-block: 14px 0; }
.terms-row input { flex: 0 0 auto; margin-top: 2px; }
.terms-row a { color: var(--jade); text-decoration: underline; text-underline-offset: 2px; }
.auth-visual-register { background-position: 25% center; }
.registration-quip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(217,184,108,.55);
  background: rgba(217,184,108,.045);
  color: #9caa9f;
}
.registration-quip > span { color: var(--gold); font-size: 17px; line-height: 1.2; }
.registration-quip p { margin: 0; font-size: 9px; line-height: 1.55; }
.auth-notice { margin-bottom: 20px; padding: 12px 15px; border: 1px solid rgba(217,184,108,.25); background: rgba(217,184,108,.07); color: #d9c79b; font-size: 11px; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; width: 100%; max-width: 460px; margin: 55px auto 0; color: #53645b; font-size: 9px; }
.auth-footer nav { display: flex; gap: 18px; }
.auth-footer a:hover { color: var(--jade); }

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: minmax(320px, .85fr) minmax(420px, 1fr); }
  .auth-story h1 { font-size: 45px; }
  .auth-visual { padding: 38px 32px; background-position: 28% center; }
}

@media (max-width: 760px) {
  .auth-layout { display: block; }
  .auth-visual { min-height: 290px; height: 35svh; padding: 24px; background-position: 28% 45%; }
  .auth-story { margin: auto 0 0; }
  .auth-story .eyebrow, .auth-story > p:last-child, .back-home { display: none; }
  .auth-story h1 { font-size: 36px; }
  .auth-panel { min-height: 65svh; padding: 48px 25px 24px; box-shadow: 0 -25px 60px rgba(0,0,0,.45); }
  .auth-box { max-width: 500px; }
  .auth-footer { margin-top: 45px; }
}

@media (max-width: 420px) {
  .auth-visual { min-height: 235px; }
  .auth-story h1 { font-size: 30px; }
  .auth-heading h2 { font-size: 35px; }
  .auth-panel { padding-inline: 20px; }
}

/* Jadefall WotLK auth refresh. */
.auth-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(100, 184, 255, .16), transparent 30%),
    radial-gradient(circle at 85% 35%, rgba(215, 181, 109, .07), transparent 28%),
    #050913;
}

.auth-visual {
  background-image:
    linear-gradient(90deg, rgba(4, 8, 16, .84), rgba(5, 12, 22, .42)),
    radial-gradient(circle at 72% 22%, rgba(100, 184, 255, .16), transparent 30%),
    url("../images/jadefall-login.jpg");
  filter: saturate(.78) hue-rotate(168deg) contrast(1.08);
}

.auth-visual > * {
  filter: hue-rotate(-168deg) saturate(1.22);
}

.auth-panel {
  background:
    linear-gradient(180deg, rgba(5, 11, 21, .98), rgba(8, 17, 31, .98)),
    radial-gradient(circle at 50% 0%, rgba(100, 184, 255, .09), transparent 32%);
  border-left: 1px solid rgba(176, 218, 255, .12);
}

.auth-box {
  border-color: rgba(176, 218, 255, .14);
  background:
    linear-gradient(145deg, rgba(12, 28, 48, .86), rgba(5, 12, 22, .94)),
    radial-gradient(circle at 88% 10%, rgba(100, 184, 255, .08), transparent 30%);
}

.field-wrap input,
.account-split article {
  background: rgba(6, 15, 28, .78);
  border-color: rgba(176, 218, 255, .14);
  color: #eaf4ff;
}

.field-wrap input:focus {
  border-color: rgba(100, 184, 255, .58);
  background: rgba(9, 22, 39, .9);
  box-shadow: 0 0 0 3px rgba(100, 184, 255, .08);
}

.field-wrap > svg {
  stroke: #8db6d5;
}

.label-row a,
.password-toggle:hover,
.terms-row a,
.auth-footer a:hover,
.registration-quip > span {
  color: #b9e4ff;
}

.password-strength span {
  background: #16304a;
}

.password-strength[data-score="4"] span {
  background: #64b8ff;
}

.auth-notice,
.registration-quip {
  border-color: rgba(215, 181, 109, .28);
  background: rgba(215, 181, 109, .07);
}

