/* VitoScore Passwort-Reset – High-end Enterprise Surface */
.pr-page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 700px;
    padding: 0 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(59,130,246,.075), transparent 29rem),
        radial-gradient(circle at 88% 80%, rgba(99,102,241,.06), transparent 27rem);
}
.pr-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .55;
    background-image: linear-gradient(rgba(148,163,184,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.055) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.dark .pr-page {
    background:
        radial-gradient(circle at 14% 15%, rgba(37,99,235,.12), transparent 31rem),
        radial-gradient(circle at 88% 76%, rgba(79,70,229,.1), transparent 29rem),
        #020617;
}
.dark .pr-page::before { opacity: .34; background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px); }

.pr-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
    width: min(1080px, 100%);
    margin: auto;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255,255,255,.72);
    box-shadow: 0 30px 90px -38px rgba(15,23,42,.4), 0 2px 5px rgba(15,23,42,.06), inset 0 1px rgba(255,255,255,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: pr-shell-in .75s cubic-bezier(.22,1,.36,1) both;
}
.dark .pr-shell { background: rgba(15,23,42,.76); border-color: rgba(148,163,184,.16); box-shadow: 0 35px 100px -38px rgba(0,0,0,.8), inset 0 1px rgba(255,255,255,.07); }
@keyframes pr-shell-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ── Visual security panel ─────────────────────────────────────────────── */
.pr-visual {
    position: relative;
    min-height: 660px;
    padding: 3rem;
    overflow: hidden;
    color: #e2e8f0;
    background: linear-gradient(143deg, #071426 0%, #0b1930 52%, #101c3c 100%);
}
.pr-visual::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    right: -170px;
    top: -165px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.3), transparent 68%);
    filter: blur(2px);
    animation: pr-breathe 7s ease-in-out infinite;
}
.pr-visual::after {
    content: '';
    position: absolute;
    left: -180px;
    bottom: -240px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(129,140,248,.18);
    box-shadow: 0 0 0 36px rgba(129,140,248,.035), 0 0 0 72px rgba(129,140,248,.025);
}
@keyframes pr-breathe { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.pr-visual-grid {
    position: absolute;
    inset: 0;
    opacity: .3;
    background-image: radial-gradient(rgba(147,197,253,.5) .7px, transparent .7px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse 80% 68% at 50% 42%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 68% at 50% 42%, black, transparent 75%);
}
.pr-visual-content { position: relative; z-index: 1; }
.pr-kicker {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #93c5fd;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.pr-kicker-mark { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 0 5px rgba(96,165,250,.12), 0 0 16px rgba(96,165,250,.8); }
.pr-kicker-mark::after { content: ''; position: absolute; inset: -5px; border: 1px solid rgba(147,197,253,.42); border-radius: 50%; animation: pr-ping 2.4s ease-out infinite; }
@keyframes pr-ping { 0% { opacity: .75; transform: scale(.65); } 75%, 100% { opacity: 0; transform: scale(1.9); } }
.pr-visual h2 { max-width: none; margin: 1.5rem 0 0; color: #f8fafc; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 750; white-space: nowrap; }
.pr-visual-lead { max-width: 27rem; margin: 1.15rem 0 0; color: #94a3b8; font-size: .94rem; line-height: 1.75; }

.pr-security-art { display: block; width: min(100%, 465px); height: auto; margin: 1.6rem auto .8rem; overflow: visible; }
.pr-orbit { transform-origin: 280px 212px; animation: pr-orbit 20s linear infinite; }
.pr-orbit-reverse { transform-origin: 280px 212px; animation: pr-orbit-reverse 27s linear infinite; }
@keyframes pr-orbit { to { transform: rotate(360deg); } }
@keyframes pr-orbit-reverse { to { transform: rotate(-360deg); } }
.pr-scan-line { animation: pr-scan 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes pr-scan { 0%, 100% { opacity: .15; transform: translateY(-34px); } 50% { opacity: .9; transform: translateY(34px); } }
.pr-core-pulse { transform-origin: 280px 212px; animation: pr-core 3.2s ease-in-out infinite; }
@keyframes pr-core { 0%, 100% { opacity: .74; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.035); } }
.pr-float-a { animation: pr-float-a 5.5s ease-in-out infinite; }
.pr-float-b { animation: pr-float-b 6.2s ease-in-out .7s infinite; }
@keyframes pr-float-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -8px); } }
@keyframes pr-float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, 7px); } }
.pr-trust-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.pr-trust-item { display: inline-flex; align-items: center; gap: .45rem; padding: .52rem .7rem; border: 1px solid rgba(148,163,184,.16); border-radius: 10px; color: #94a3b8; background: rgba(255,255,255,.045); font-size: .68rem; font-weight: 700; letter-spacing: .035em; }
.pr-trust-item svg { color: #60a5fa; }

/* ── Form surface ──────────────────────────────────────────────────────── */
.pr-panel { padding: 3rem 3.25rem 2.45rem; background: rgba(255,255,255,.82); }
.dark .pr-panel { background: rgba(15,23,42,.68); }
.pr-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.1rem; }
.pr-brand-mini { display: inline-flex; align-items: center; gap: .6rem; color: #0f172a; font-size: .78rem; font-weight: 800; letter-spacing: -.015em; }
.dark .pr-brand-mini { color: #f8fafc; }
.pr-brand-mini img { width: 25px; height: 25px; }
.pr-encrypted { display: inline-flex; align-items: center; gap: .4rem; color: #64748b; font-size: .64rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.dark .pr-encrypted { color: #94a3b8; }
.pr-encrypted svg { color: #10b981; }

.pr-steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin-bottom: 2.25rem; }
.pr-steps::before { content: ''; position: absolute; top: 14px; left: 15%; right: 15%; height: 1px; background: #e2e8f0; }
.dark .pr-steps::before { background: #334155; }
.pr-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .55rem; color: #94a3b8; font-size: .63rem; font-weight: 750; text-align: center; }
.pr-step-dot { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid #cbd5e1; border-radius: 50%; color: #64748b; background: #fff; font-size: .68rem; font-weight: 800; transition: all .35s ease; }
.dark .pr-step-dot { border-color: #475569; color: #94a3b8; background: #0f172a; }
.pr-step.is-active { color: #2563eb; }
.pr-step.is-active .pr-step-dot { border-color: #2563eb; color: #fff; background: #2563eb; box-shadow: 0 0 0 5px rgba(37,99,235,.11), 0 5px 14px rgba(37,99,235,.25); }
.pr-step.is-complete { color: #059669; }
.pr-step.is-complete .pr-step-dot { border-color: #10b981; color: #fff; background: #10b981; }
.pr-heading { margin-bottom: 1.7rem; }
.pr-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .75rem; color: #2563eb; font-size: .67rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.dark .pr-eyebrow { color: #60a5fa; }
.pr-eyebrow svg { width: 15px; height: 15px; }
.pr-heading h1 { margin: 0; color: #0f172a; font-size: clamp(1.75rem, 3vw, 2.2rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; }
.dark .pr-heading h1 { color: #f8fafc; }
.pr-heading p { max-width: 31rem; margin: .8rem 0 0; color: #64748b; font-size: .89rem; line-height: 1.65; }
.dark .pr-heading p { color: #94a3b8; }

.pr-alert { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.25rem; padding: .85rem .95rem; border: 1px solid; border-radius: 13px; font-size: .78rem; line-height: 1.55; }
.pr-alert svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: .08rem; }
.pr-alert-error { color: #b91c1c; border-color: #fecaca; background: #fff1f2; }
.dark .pr-alert-error { color: #fca5a5; border-color: rgba(248,113,113,.25); background: rgba(127,29,29,.2); }
.pr-alert-success { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.dark .pr-alert-success { color: #6ee7b7; border-color: rgba(52,211,153,.23); background: rgba(6,78,59,.22); }

.pr-form { display: flex; flex-direction: column; gap: 1.1rem; }
.pr-field-label { display: block; margin-bottom: .55rem; color: #475569; font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.dark .pr-field-label { color: #cbd5e1; }
.pr-input-wrap { position: relative; }
.pr-input-icon { position: absolute; top: 50%; left: 1rem; display: flex; color: #94a3b8; pointer-events: none; transform: translateY(-50%); transition: color .25s ease; }
.pr-field:focus-within .pr-input-icon { color: #2563eb; }
.dark .pr-field:focus-within .pr-input-icon { color: #60a5fa; }
.pr-input {
    display: block;
    width: 100%;
    min-height: 53px;
    padding: .9rem 3rem .9rem 2.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    outline: 0;
    color: #0f172a;
    background: rgba(248,250,252,.84);
    font: inherit;
    font-size: .88rem;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.pr-input::placeholder { color: #94a3b8; }
.pr-input:focus { border-color: #60a5fa; background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.12), 0 8px 20px -14px rgba(37,99,235,.6); }
.dark .pr-input { border-color: #334155; color: #f8fafc; background: rgba(2,6,23,.38); }
.dark .pr-input:focus { border-color: #60a5fa; background: rgba(2,6,23,.6); }
.pr-password-toggle { position: absolute; top: 50%; right: .8rem; display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; padding: 0; border: 0; border-radius: 8px; color: #94a3b8; background: transparent; cursor: pointer; transform: translateY(-50%); transition: color .2s ease, background .2s ease; }
.pr-password-toggle:hover { color: #2563eb; background: rgba(37,99,235,.08); }
.pr-password-toggle:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.pr-field-note { margin: .48rem 0 0; color: #94a3b8; font-size: .7rem; line-height: 1.4; }

.pr-strength { display: grid; gap: .45rem; margin-top: .65rem; }
.pr-strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pr-strength-bar { height: 3px; border-radius: 99px; background: #e2e8f0; transition: background .3s ease; }
.dark .pr-strength-bar { background: #334155; }
.pr-strength[data-level="1"] .pr-strength-bar:nth-child(1) { background: #f87171; }
.pr-strength[data-level="2"] .pr-strength-bar:nth-child(-n+2) { background: #fbbf24; }
.pr-strength[data-level="3"] .pr-strength-bar:nth-child(-n+3) { background: #60a5fa; }
.pr-strength[data-level="4"] .pr-strength-bar { background: #34d399; }
.pr-strength-label { color: #94a3b8; font-size: .68rem; font-weight: 700; }

.pr-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    min-height: 54px;
    margin-top: .35rem;
    padding: .8rem 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(147,197,253,.35);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #315edb 52%, #4f46e5 100%);
    box-shadow: 0 12px 24px -12px rgba(37,99,235,.75), inset 0 1px rgba(255,255,255,.22);
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .3s cubic-bezier(.32,.72,0,1), box-shadow .3s ease, filter .3s ease;
}
.pr-submit::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.2) 48%, transparent 76%); transform: translateX(-120%); transition: transform .7s ease; }
.pr-submit:hover { filter: saturate(1.12); box-shadow: 0 17px 30px -13px rgba(37,99,235,.9), inset 0 1px rgba(255,255,255,.28); transform: translateY(-2px); }
.pr-submit:hover::before { transform: translateX(120%); }
.pr-submit:active { transform: translateY(0) scale(.99); }
.pr-submit:focus-visible { outline: 3px solid rgba(96,165,250,.45); outline-offset: 3px; }
.pr-submit:disabled { cursor: not-allowed; filter: grayscale(.12); opacity: .65; transform: none; }
.pr-btn .btn-label { display: inline-flex; align-items: center; gap: .6rem; }
.pr-btn .btn-spinner { display: none; align-items: center; gap: .6rem; }
.pr-btn.loading .btn-label { display: none; }
.pr-btn.loading .btn-spinner { display: inline-flex; }

.pr-recaptcha { margin: .15rem 0 0; color: #94a3b8; font-size: .64rem; line-height: 1.55; text-align: center; }
.pr-recaptcha a, .pr-back-link { color: #64748b; text-decoration: underline; text-decoration-color: rgba(100,116,139,.35); text-underline-offset: 3px; transition: color .2s ease; }
.pr-recaptcha a:hover, .pr-back-link:hover { color: #2563eb; }
.dark .pr-recaptcha a, .dark .pr-back-link { color: #94a3b8; }
.pr-back-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.9rem; color: #64748b; font-size: .73rem; font-weight: 700; text-decoration: none; }
.pr-back-link:hover { text-decoration: none; }
.pr-back-link svg { transition: transform .25s ease; }
.pr-back-link:hover svg { transform: translateX(-3px); }

.pr-success { padding: .5rem 0 .2rem; text-align: center; }
.pr-success-mark { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 0 auto 1.25rem; border: 1px solid rgba(16,185,129,.3); border-radius: 23px; color: #10b981; background: rgba(16,185,129,.1); box-shadow: 0 0 0 8px rgba(16,185,129,.045), 0 14px 30px -17px rgba(16,185,129,.65); animation: pr-success-in .65s cubic-bezier(.34,1.56,.64,1) both; }
.pr-success-mark svg { width: 36px; height: 36px; }
.pr-success-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: pr-draw-check .7s .2s ease forwards; }
@keyframes pr-success-in { from { opacity: 0; transform: scale(.65) rotate(-10deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes pr-draw-check { to { stroke-dashoffset: 0; } }
.pr-success h2 { margin: 0; color: #0f172a; font-size: 1.45rem; letter-spacing: -.035em; }
.dark .pr-success h2 { color: #f8fafc; }
.pr-success p { margin: .75rem auto 1.5rem; max-width: 22rem; color: #64748b; font-size: .85rem; line-height: 1.65; }
.dark .pr-success p { color: #94a3b8; }
.pr-login-link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.55rem; border-radius: 12px; color: #fff; background: #2563eb; font-size: .82rem; font-weight: 800; text-decoration: none; box-shadow: 0 10px 20px -12px rgba(37,99,235,.75); transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.pr-login-link:hover { background: #1d4ed8; box-shadow: 0 14px 25px -12px rgba(37,99,235,.9); transform: translateY(-2px); }
.pr-login-link:focus-visible { outline: 3px solid rgba(96,165,250,.45); outline-offset: 3px; }

@media (max-width: 860px) {
    .pr-page { align-items: flex-start; min-height: 0; padding: 0 1rem; }
    .pr-shell { grid-template-columns: 1fr; max-width: 620px; border-radius: 25px; }
    .pr-visual { min-height: 0; padding: 2.5rem 2.25rem 1.5rem; }
    .pr-visual h2 { max-width: none; font-size: clamp(1.4rem, 3.4vw, 2rem); }
    .pr-visual-lead { max-width: 35rem; }
    .pr-security-art { max-width: 410px; margin-top: 1.05rem; margin-bottom: -.3rem; }
    .pr-trust-row { margin-top: .4rem; }
    .pr-panel { padding: 2.5rem 2.75rem 2.3rem; }
}
@media (max-width: 520px) {
    .pr-page { padding: 1.35rem .65rem 3rem; }
    .pr-shell { border-radius: 21px; }
    .pr-visual { padding: 2rem 1.35rem .8rem; }
    .pr-visual h2 { margin-top: 1.1rem; font-size: 1.42rem; }
    .pr-visual-lead { margin-top: .85rem; font-size: .83rem; }
    .pr-security-art { width: 115%; max-width: none; margin: .35rem -7.5% -.6rem; }
    .pr-trust-row { gap: .45rem; }
    .pr-trust-item { padding: .45rem .52rem; font-size: .59rem; }
    .pr-panel { padding: 1.8rem 1.25rem 1.7rem; }
    .pr-panel-top { margin-bottom: 1.8rem; }
    .pr-encrypted { font-size: .55rem; letter-spacing: .04em; }
    .pr-steps { margin-bottom: 1.9rem; }
    .pr-step { font-size: .57rem; }
    .pr-heading h1 { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pr-shell, .pr-visual::before, .pr-kicker-mark::after, .pr-orbit, .pr-orbit-reverse, .pr-scan-line, .pr-core-pulse, .pr-float-a, .pr-float-b, .pr-success-mark, .pr-success-mark path { animation: none; }
    .pr-submit, .pr-submit::before, .pr-login-link, .pr-back-link svg { transition: none; }
}
.grecaptcha-badge { visibility: hidden !important; }
