/* Small page CSS shared by the Account views (register, activation, reset, my_info, my_password, settings). Include in @section Head.
   Cinematic theme: dark glass panels, gold accents, round icons and avatars (no squares). Tokens come from site.css.
   (was inline in Views/Account/_AccountStyles.cshtml; now a cached file) */
.form-msg:empty { display: none; }
.form .grid { gap: 1rem; }
.panel-head { flex-wrap: wrap; }
.panel-head h3 i { color: var(--gold); }
.panel-head .chip, .panel-head .badge { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acc-narrow { max-width: 40rem; margin-inline: auto; }
fieldset.form { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.form[disabled] { opacity: .6; }
.row.between > .btn { flex: 0 1 auto; }
@media (max-width: 419.98px) { .row.between > .btn { flex: 1 1 100%; } }

/* round gold icon used by perks, tiles and result screens */
.orb-ic {
    position: relative; flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
    color: var(--gold); font-size: 1.3rem;
    background: radial-gradient(circle at 35% 30%, rgba(255, 226, 122, .26), rgba(245, 197, 24, .07) 62%);
    box-shadow: inset 0 0 0 1px rgba(245, 197, 24, .32), 0 0 1.6rem -.5rem rgba(245, 197, 24, .45);
    transition: transform .55s var(--spring), color .3s, box-shadow .4s;
}

/* ---- register: cinematic picture side + form ---- */
.auth {
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); max-width: 70rem; margin-inline: auto; overflow: hidden;
    border-radius: var(--r-xl); border: 1px solid var(--line); background: #121110;
    box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, .9), 0 0 4rem -2.5rem rgba(245, 197, 24, .35);
}
.auth > * { min-width: 0; }
.auth-side {
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.25rem;
    padding: clamp(1.4rem, 4vw, 2.75rem); color: var(--text); background: #0d0c0b; border-inline-end: 1px solid rgba(245, 197, 24, .18);
}
.auth-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }
.auth-side::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(10, 10, 10, .2), rgba(10, 10, 10, .78) 34%, rgba(10, 10, 10, .95) 62%), radial-gradient(80% 45% at 50% 100%, rgba(245, 197, 24, .16), transparent 70%);
}
.auth-side h2 { color: var(--text); margin: 0; }
.auth-side p { margin: 0; color: var(--text-2); }
.auth-side .foot { margin-top: .5rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; color: var(--text-2); }
.perk { display: flex; gap: .9rem; align-items: flex-start; }
.perk .orb-ic { background: rgba(16, 15, 14, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(245, 197, 24, .42), 0 0 1.6rem -.4rem rgba(245, 197, 24, .5); }
.perk:hover .orb-ic { transform: scale(1.08); color: var(--on-gold); background: radial-gradient(circle at 35% 30%, #fff2b8, var(--gold) 55%, var(--gold-3)); }
.perk > div { min-width: 0; }
.perk b { display: block; color: var(--text); }
.perk > div > span { color: var(--text-2); font-size: .92rem; }
.auth-main { background: linear-gradient(180deg, #161413, #121110); padding: clamp(1.25rem, 4vw, 2.75rem); }
.form-title { display: flex; align-items: center; gap: .6rem; margin: 0; }
.form-title i { color: var(--gold); }
@media (max-width: 900px) {
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-side { order: 2; padding-top: clamp(9rem, 34vw, 15rem); border-inline-end: 0; border-top: 1px solid rgba(245, 197, 24, .18); }
}

.require-box {
    display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; max-width: 70rem; margin: 0 auto 1.75rem; padding: 1.1rem 1.25rem; border-radius: var(--r-lg);
    background: radial-gradient(120% 160% at var(--os) 0%, rgba(251, 191, 36, .12), transparent 60%), rgba(255, 255, 255, .03); border: 1px solid rgba(251, 191, 36, .35);
}
.require-box .orb-ic { width: 3.25rem; height: 3.25rem; font-size: 1.5rem; color: var(--warning); background: radial-gradient(circle at 35% 30%, rgba(251, 191, 36, .3), rgba(251, 191, 36, .08) 65%); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45), 0 0 1.8rem -.4rem rgba(251, 191, 36, .5); }
.require-box > div { flex: 1; min-width: min(100%, 13rem); }
.require-box b { font-size: 1.08rem; display: block; color: var(--text); }
@media (max-width: 479.98px) { .require-box > .btn { flex: 1 1 100%; } }

/* ---- password field: show/hide + strength ---- */
.pw { position: relative; }
.pw .input { padding-inline-end: 3.25rem; }
.pw-eye {
    position: absolute; inset-inline-end: .3rem; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; transition: color .2s, background-color .2s;
}
.pw-eye:hover { color: var(--gold); background: rgba(255, 255, 255, .06); }
.pw-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.pw-meter i { height: .3rem; border-radius: var(--pill); background: var(--line-2); transition: background-color .35s var(--ease); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--info); }
.pw-meter[data-score="4"] i { background: var(--success); }

/* live check under a field */
.status { display: none; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; animation: fade-up .3s var(--ease-out); }
.status.ok, .status.bad, .status.wait { display: flex; }
.status.ok { color: var(--success); } .status.bad { color: var(--danger); } .status.wait { color: var(--muted); }
.status .ti { flex: none; }
.status.wait .ti { animation: spin 1s linear infinite; }
.input.valid { border-color: rgba(74, 222, 128, .7); }

@media (max-width: 420px) { .captcha-row { flex-wrap: wrap; } .captcha-row .input { max-width: none; flex: 1; min-width: 6rem; } }

/* ---- result screens (activation, reset, registered) ---- */
.result {
    position: relative; overflow: hidden; text-align: center; max-width: 44rem; margin-inline: auto; padding: clamp(1.75rem, 5vw, 3.6rem) clamp(1.1rem, 4vw, 2.9rem);
    background: radial-gradient(70% 45% at 50% 0%, rgba(245, 197, 24, .12), transparent 70%), linear-gradient(180deg, #161413, #121110);
}
.result-icon {
    position: relative; display: grid; place-items: center; width: 5.75rem; height: 5.75rem; margin: .6rem auto 1.9rem; border-radius: 50%;
    color: var(--on-gold); font-size: 2.6rem; background: radial-gradient(circle at 35% 30%, #fff2b8, var(--gold) 55%, var(--gold-3));
    box-shadow: 0 0 0 .5rem rgba(245, 197, 24, .14), 0 0 3rem rgba(245, 197, 24, .5);
}
.result-icon::after { content: ""; position: absolute; inset: -1.1rem; border-radius: 50%; border: 1px dashed rgba(245, 197, 24, .5); }
.result-icon.bad {
    color: var(--danger); background: radial-gradient(circle at 35% 30%, rgba(248, 113, 113, .32), rgba(248, 113, 113, .08) 65%);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .45), 0 0 3rem -.4rem rgba(248, 113, 113, .5);
}
.result-icon.bad::after { border-color: rgba(248, 113, 113, .5); }
@media (prefers-reduced-motion: no-preference) {
    .result-icon { animation: result-in .9s var(--spring) both; }
    .result-icon::after { animation: spin 30s linear infinite; }
}
@keyframes result-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.result h2 { overflow-wrap: anywhere; }
.result .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.result .resend { margin-top: 1.6rem; padding: 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.result .chip { max-width: 100%; }
.countdown {
    display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-inline: .25rem; border-radius: 50%; vertical-align: middle;
    color: var(--on-gold); background: var(--grad); font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 1.2rem -.2rem rgba(245, 197, 24, .6);
}
@media (max-width: 479.98px) { .result .actions > .btn { flex: 1 1 100%; } }

/* ---- my_info ---- */
.profile-grid { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); align-items: start; }
.profile-grid > * { min-width: 0; }
.profile-grid > aside { position: sticky; top: calc(var(--header-h) + 1rem); background: radial-gradient(90% 50% at 50% 0%, rgba(245, 197, 24, .1), transparent 70%), linear-gradient(180deg, #161413, #121110); }
@media (max-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } .profile-grid > aside { position: static; } }
.profile-grid > aside h3 { overflow-wrap: anywhere; }
.avatar-edit { position: relative; width: 8.5rem; height: 8.5rem; margin: 1.1rem auto 1.4rem; }
.avatar-edit img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, .5), 0 0 2.5rem -.4rem rgba(245, 197, 24, .45); transition: filter .3s;
}
.avatar-edit::before { content: ""; position: absolute; inset: -.7rem; border-radius: 50%; border: 1px dashed rgba(245, 197, 24, .5); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .avatar-edit::before { animation: spin 40s linear infinite; } }
.avatar-edit .pick {
    position: absolute; bottom: .1rem; inset-inline-end: .1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%;
    color: var(--on-gold); background: var(--grad); cursor: pointer; font-size: 1.2rem; box-shadow: 0 0 0 3px #141210, 0 .6rem 1.4rem -.4rem rgba(245, 197, 24, .7);
    transition: transform .45s var(--spring);
}
.avatar-edit .pick:hover { transform: scale(1.1); }
.avatar-edit .spin { position: absolute; inset: 0; display: none; place-items: center; border-radius: 50%; }
.avatar-edit.busy img { filter: blur(2px) grayscale(.5); }
.avatar-edit.busy .spin { display: grid; }

/* ---- settings ---- */
.me-card { background: radial-gradient(70% 120% at var(--os) 0%, rgba(245, 197, 24, .1), transparent 65%), linear-gradient(180deg, #161413, #121110); }
.me-band { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.me-band > div:not(.me-stats) { flex: 1 1 12rem; min-width: 0; }
.me-band .avatar-lg { border: 3px solid #141210; box-shadow: 0 0 0 2px rgba(245, 197, 24, .55), 0 0 2rem -.3rem rgba(245, 197, 24, .45); }
.me-band h2 { margin: 0; overflow-wrap: anywhere; }
.me-band .muted { overflow-wrap: anywhere; }
.me-band .ltr { width: fit-content; max-width: 100%; }
.me-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-inline-start: auto; width: min(100%, 30rem); }
.me-stats .stat { color: var(--text); padding: .9rem 1rem; transition: translate .5s var(--spring), border-color .3s; }
.me-stats .stat .label { display: flex; align-items: center; gap: .35rem; }
.me-stats .stat .label .ti { color: var(--gold); }
.me-stats .stat .value { font-size: 1.4rem; overflow-wrap: anywhere; }
a.stat:hover { color: var(--text); border-color: rgba(245, 197, 24, .5); translate: 0 -2px; }
@media (max-width: 720px) { .me-stats { margin-inline-start: 0; width: 100%; } }
@media (max-width: 520px) { .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .me-stats .stat:first-child { grid-column: 1 / -1; } }
.set-tiles { display: grid; gap: clamp(.9rem, 1.6vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.set-tile {
    display: flex; align-items: center; gap: 1rem; min-width: 0; padding: 1.15rem 1.2rem; border-radius: var(--r-lg);
    background: linear-gradient(180deg, #181614, #11100f); border: 1px solid var(--line); color: var(--text);
    transition: translate .55s var(--spring), border-color .35s, box-shadow .45s;
}
.set-tile:hover { color: var(--text); translate: 0 -.3rem; border-color: rgba(245, 197, 24, .4); box-shadow: 0 1.2rem 2.6rem -1.2rem rgba(245, 197, 24, .35); }
.set-tile .orb-ic { width: 3.4rem; height: 3.4rem; font-size: 1.55rem; }
.set-tile:hover .orb-ic { transform: scale(1.08); color: var(--on-gold); background: radial-gradient(circle at 35% 30%, #fff2b8, var(--gold) 55%, var(--gold-3)); box-shadow: 0 0 0 .35rem rgba(245, 197, 24, .14), 0 0 2rem -.2rem rgba(245, 197, 24, .55); }
.set-tile .txt { flex: 1; min-width: 0; }
.set-tile b { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: 1.05rem; }
.set-tile small { display: block; color: var(--muted); line-height: 1.5; }
.set-tile .go { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); font-size: 1rem; transition: translate .4s var(--ease), background-color .3s, color .3s, border-color .3s; }
.set-tile:hover .go { background: var(--gold); color: var(--on-gold); border-color: transparent; translate: var(--nudge, 3px) 0; }
[dir="rtl"] .set-tile .go { --nudge: -3px; }
@media (max-width: 379.98px) {
    .set-tile { gap: .75rem; padding: 1rem .9rem; }
    .set-tile .orb-ic { width: 2.8rem; height: 2.8rem; font-size: 1.3rem; }
}
