/* Eterna / Perfect World modern authentication skin */
.auth-pw-page {
    position: relative;
    min-height: calc(100vh - 76px);
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: #07080d;
}
.auth-pw-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background-image: var(--auth-hero, var(--page-bg));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.03);
    filter: saturate(.9) contrast(1.05);
}
.auth-pw-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 18% 24%, rgba(245,158,11,.18), transparent 34%),
        radial-gradient(circle at 82% 70%, rgba(124,58,237,.17), transparent 38%),
        linear-gradient(90deg, rgba(4,5,9,.60) 0%, rgba(4,5,9,.78) 48%, rgba(4,5,9,.92) 100%),
        linear-gradient(180deg, rgba(4,5,9,.12), rgba(4,5,9,.76) 83%, #08090d 100%);
}
.auth-pw-noise,
.auth-pw-stars {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}
.auth-pw-noise {
    opacity: .14;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.auth-pw-stars {
    opacity: .48;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,225,160,.8) 0 1px, transparent 1.5px),
        radial-gradient(circle at 32% 74%, rgba(255,255,255,.75) 0 1px, transparent 1.5px),
        radial-gradient(circle at 65% 18%, rgba(255,225,160,.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 84% 46%, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 94% 15%, rgba(255,225,160,.6) 0 1px, transparent 1.5px);
    background-size: 340px 340px, 410px 410px, 470px 470px, 380px 380px, 520px 520px;
}
.auth-pw-shell {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 54px 0 72px;
}
.auth-pw-grid {
    display: grid;
    grid-template-columns: minmax(0,1.05fr) minmax(400px,.75fr);
    gap: clamp(2.5rem,6vw,6.5rem);
    align-items: center;
}
.auth-pw-grid.auth-register-grid {
    grid-template-columns: minmax(330px,.72fr) minmax(520px,1fr);
    gap: clamp(2.3rem,5vw,5.2rem);
}
.auth-pw-story {
    max-width: 650px;
    padding: 1.5rem 0;
    text-shadow: 0 3px 22px rgba(0,0,0,.45);
}
.auth-pw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(245,158,11,.26);
    border-radius: 999px;
    background: rgba(7,9,14,.46);
    box-shadow: inset 0 0 24px rgba(245,158,11,.045);
    color: #fcd887;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.auth-pw-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5b947;
    box-shadow: 0 0 16px rgba(245,185,71,.8);
}
.auth-pw-title {
    margin-top: 1.2rem;
    color: #fff;
    font-size: clamp(2.7rem,6vw,5.8rem);
    line-height: .93;
    letter-spacing: -.055em;
    font-weight: 950;
    text-wrap: balance;
}
.auth-pw-title em {
    display: block;
    margin-top: .07em;
    font-style: normal;
    color: transparent;
    background: linear-gradient(110deg,#fff0ba 0%,#e5aa3c 45%,#fff1bf 72%,#c98625 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 5px 18px rgba(197,134,37,.14));
}
.auth-pw-lead {
    max-width: 580px;
    margin-top: 1.35rem;
    color: #bec6d5;
    font-size: clamp(.94rem,1.4vw,1.08rem);
    line-height: 1.8;
}
.auth-pw-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.4rem;
    margin-top: 1.65rem;
    color: #d8dee9;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .02em;
}
.auth-pw-highlights span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.auth-pw-highlights span::before {
    content: "✦";
    color: #e8b14c;
    font-size: .7rem;
}
.auth-pw-world-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    width: fit-content;
    margin-top: 2rem;
    padding: .8rem 1rem;
    border-left: 2px solid rgba(245,158,11,.75);
    background: linear-gradient(90deg,rgba(13,15,22,.65),rgba(13,15,22,.12));
}
.auth-pw-world-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(245,158,11,.26);
    background: rgba(245,158,11,.08);
    color: #efc96f;
    font-size: 1rem;
}
.auth-pw-world-card strong {
    display: block;
    color: #fff;
    font-size: .82rem;
    letter-spacing: .05em;
}
.auth-pw-world-card small {
    display: block;
    margin-top: .15rem;
    color: #8f9bad;
    font-size: .72rem;
}
.auth-pw-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,222,155,.14);
    border-radius: 24px;
    background:
        linear-gradient(145deg,rgba(19,22,31,.93),rgba(8,10,16,.96)),
        rgba(9,11,17,.96);
    box-shadow: 0 32px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(24px);
}
.auth-pw-card::before {
    content: "";
    position: absolute;
    left: 11%;
    right: 11%;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg,transparent,#f0bd5a,transparent);
    box-shadow: 0 0 30px rgba(240,189,90,.25);
}
.auth-pw-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -90px;
    top: -95px;
    border-radius: 50%;
    background: rgba(245,158,11,.07);
    filter: blur(8px);
    pointer-events: none;
}
.auth-pw-card-inner {
    position: relative;
    z-index: 1;
    padding: clamp(1.45rem,3vw,2.35rem);
}
.auth-pw-brandline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.auth-pw-mini-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    color: #fff;
}
.auth-pw-mini-brand img {
    width: 44px;
    max-height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
.auth-pw-mini-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 13px;
    border: 1px solid rgba(245,158,11,.25);
    background: linear-gradient(145deg,rgba(245,158,11,.16),rgba(245,158,11,.04));
    color: #f4cb74;
    font-weight: 950;
}
.auth-pw-mini-brand span { min-width: 0; }
.auth-pw-mini-brand strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auth-pw-mini-brand small {
    display: block;
    margin-top: .12rem;
    color: #818da0;
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-pw-security {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    flex: none;
    color: #8e9aab;
    font-size: .64rem;
    font-weight: 700;
}
.auth-pw-security::before {
    content: "●";
    color: #49c98b;
    font-size: .6rem;
    filter: drop-shadow(0 0 5px rgba(73,201,139,.65));
}
.auth-pw-heading {
    color: #fff;
    font-size: clamp(1.65rem,3vw,2.2rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.035em;
}
.auth-pw-subheading {
    margin-top: .55rem;
    color: #8f9bad;
    font-size: .84rem;
    line-height: 1.65;
}
.auth-pw-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
}
.auth-pw-register-form {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem .9rem;
}
.auth-pw-field { min-width: 0; }
.auth-pw-field.auth-span-2 { grid-column: span 2; }
.auth-pw-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .42rem;
}
.auth-pw-label {
    color: #d6dce6;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .025em;
}
.auth-pw-label-note {
    color: #697588;
    font-size: .64rem;
}
.auth-pw-input-wrap { position: relative; }
.auth-pw-input-icon {
    position: absolute;
    left: .88rem;
    top: 50%;
    z-index: 2;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: #6f7b8e;
    pointer-events: none;
}
.auth-pw-input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 12px;
    background: rgba(3,5,10,.55);
    color: #f8fafc;
    padding: 0 2.8rem 0 2.75rem;
    font-size: .84rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.auth-pw-input::placeholder { color: #4e596a; }
.auth-pw-input:hover { border-color: rgba(255,214,128,.18); background: rgba(3,5,10,.68); }
.auth-pw-input:focus {
    border-color: rgba(232,177,76,.72);
    background: rgba(3,5,10,.8);
    box-shadow: 0 0 0 3px rgba(232,177,76,.08), inset 0 0 22px rgba(232,177,76,.025);
}
.auth-pw-input-wrap:focus-within .auth-pw-input-icon { color: #e7b44f; }
.auth-pw-password-toggle {
    position: absolute;
    right: .55rem;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #697588;
    cursor: pointer;
}
.auth-pw-password-toggle:hover { background: rgba(255,255,255,.045); color: #d7dde7; }
.auth-pw-password-toggle svg { width: 17px; height: 17px; }
.auth-pw-error {
    margin-top: .38rem;
    color: #fca5a5;
    font-size: .68rem;
    line-height: 1.45;
}
.auth-pw-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .1rem;
    color: #8b96a7;
    font-size: .74rem;
}
.auth-pw-check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
}
.auth-pw-check input {
    width: 16px;
    height: 16px;
    accent-color: #d9a338;
}
.auth-pw-link {
    color: #e6bd67;
    font-weight: 800;
    text-decoration: none;
}
.auth-pw-link:hover { color: #ffe4a6; }
.auth-pw-submit {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    min-height: 50px;
    margin-top: .25rem;
    border: 1px solid rgba(255,225,157,.38);
    border-radius: 12px;
    background: linear-gradient(120deg,#b87818 0%,#e6b64f 35%,#f5d27f 52%,#d39a32 78%,#a96612 100%);
    background-size: 180% 100%;
    color: #1a1104;
    font-size: .79rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 11px 30px rgba(181,116,19,.20), inset 0 1px 0 rgba(255,255,255,.35);
}
.auth-pw-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(100deg,transparent,rgba(255,255,255,.42),transparent);
    transition: transform .55s ease;
}
.auth-pw-submit:hover { transform: translateY(-1px); background-position: 100% 0; filter: brightness(1.05); }
.auth-pw-submit:hover::before { transform: translateX(120%); }
.auth-pw-submit:active { transform: translateY(0); }
.auth-pw-submit svg { width: 16px; height: 16px; }
.auth-pw-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.35rem 0 1rem;
    color: #5f6a7a;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-pw-divider::before,
.auth-pw-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.10));
}
.auth-pw-divider::after { background: linear-gradient(90deg,rgba(255,255,255,.10),transparent); }
.auth-pw-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: #7f8a9b;
    font-size: .75rem;
    text-align: center;
}
.auth-pw-alt a { color: #eac16a; font-weight: 900; }
.auth-pw-terms {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: .1rem;
    padding: .85rem .9rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: rgba(255,255,255,.022);
    color: #8f9bad;
    font-size: .7rem;
    line-height: 1.55;
}
.auth-pw-terms input {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: .15rem;
    accent-color: #d9a338;
}
.auth-pw-terms a { color: #dfb55e; font-weight: 800; }
.auth-pw-password-meter {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 4px;
    margin-top: .5rem;
}
.auth-pw-password-meter span {
    height: 3px;
    border-radius: 99px;
    background: rgba(255,255,255,.075);
    transition: background .18s, box-shadow .18s;
}
.auth-pw-password-meter[data-level="1"] span:nth-child(-n+1) { background:#ef6a6a; }
.auth-pw-password-meter[data-level="2"] span:nth-child(-n+2) { background:#e89d3c; }
.auth-pw-password-meter[data-level="3"] span:nth-child(-n+3) { background:#d6be49; }
.auth-pw-password-meter[data-level="4"] span:nth-child(-n+4) { background:#4fc38a; box-shadow:0 0 8px rgba(79,195,138,.15); }
.auth-pw-strength-text {
    display: block;
    margin-top: .35rem;
    color: #667286;
    font-size: .62rem;
}
.auth-pw-back {
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    z-index: 6;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    background: rgba(4,6,10,.56);
    color: #d8dee8;
    backdrop-filter: blur(10px);
}
.auth-pw-flash > div { margin-bottom: 1rem; }

@media (max-width: 980px) {
    .auth-pw-page { min-height: auto; }
    .auth-pw-shell { width:min(760px,calc(100% - 1.6rem)); padding:42px 0 56px; }
    .auth-pw-grid,
    .auth-pw-grid.auth-register-grid { grid-template-columns: 1fr; gap: 2rem; }
    .auth-pw-story { max-width: 620px; padding:.5rem 0; }
    .auth-pw-title { font-size:clamp(2.4rem,9vw,4.3rem); }
    .auth-pw-lead { max-width: 620px; }
    .auth-pw-world-card { margin-top:1.4rem; }
}

@media (max-width: 640px) {
    .auth-pw-page::after {
        background:
            radial-gradient(circle at 50% 18%,rgba(245,158,11,.13),transparent 35%),
            linear-gradient(180deg,rgba(4,5,9,.52),rgba(4,5,9,.90) 58%,#08090d 100%);
    }
    .auth-pw-shell { width:min(100% - 1rem,580px); padding:30px 0 42px; }
    .auth-pw-story { padding:0 .45rem; }
    .auth-pw-title { margin-top:.9rem; font-size:clamp(2.35rem,14vw,3.6rem); }
    .auth-pw-lead { margin-top:1rem; font-size:.89rem; line-height:1.7; }
    .auth-pw-highlights { gap:.55rem 1rem; margin-top:1.2rem; font-size:.7rem; }
    .auth-pw-world-card { display:none; }
    .auth-pw-card { border-radius:19px; }
    .auth-pw-card-inner { padding:1.25rem; }
    .auth-pw-brandline { margin-bottom:1.3rem; }
    .auth-pw-security { display:none; }
    .auth-pw-register-form { grid-template-columns:1fr; }
    .auth-pw-field.auth-span-2,
    .auth-pw-terms { grid-column:span 1; }
    .auth-pw-meta-row { align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-pw-submit::before { display:none; }
}
