.password-reset-v5-page {
    background: #f5f4f2;
    color: #111;
}

.password-reset-v5-page .wrapper-inner > #main {
    min-height: 0;
    padding: 0;
}

.password-reset-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(650px, calc(100vh - 150px), 880px);
    padding: 56px 24px 44px;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 148, 24, 0.08), transparent 28%),
        #f5f4f2;
}

.password-reset-page-inner {
    width: min(960px, 100%);
    margin: 0 auto;
}

.password-reset-card {
    position: relative;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    min-height: 570px;
    overflow: hidden;
    border: 1px solid #e4e1dd;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(27, 23, 18, 0.1);
}

.password-reset-form-card {
    grid-template-columns: 400px minmax(0, 1fr);
}

.password-reset-art {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 46px 34px 38px;
    background: linear-gradient(145deg, #fff8ee 0%, #fff1dc 55%, #ffe5c1 100%);
}

.password-reset-dot-grid {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    background-image: radial-gradient(circle, rgba(255, 148, 24, 0.26) 1.15px, transparent 1.15px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.35));
}

.password-reset-art-glow {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 148, 24, 0.2);
    filter: blur(48px);
    transform: translate(-50%, -50%);
}

.password-reset-mascot {
    position: relative;
    z-index: 2;
    display: block;
    width: min(310px, 92%);
    height: auto;
    margin: -12px auto 18px;
    filter: drop-shadow(0 18px 16px rgba(90, 49, 5, 0.14));
    animation: password-reset-float 5s ease-in-out infinite;
}

.password-reset-art-caption {
    position: relative;
    z-index: 2;
    width: min(300px, 100%);
    text-align: center;
}

.password-reset-art-caption strong {
    display: block;
    margin-bottom: 7px;
    color: #111;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.15;
}

.password-reset-art-caption span {
    display: block;
    color: #716b63;
    font-size: 13px;
    line-height: 1.55;
}

.password-reset-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 58px 56px;
}

.password-reset-error-content {
    padding-top: 50px;
    padding-bottom: 50px;
}

.password-reset-status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 21px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.85px;
    line-height: 1;
    text-transform: uppercase;
}

.password-reset-status-warning {
    background: #fff1df;
    color: #dd6f00;
}

.password-reset-status-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
}

.password-reset-content h1,
.password-reset-success h2 {
    margin: 0 0 14px;
    color: #0d0d0d;
    font-size: clamp(36px, 4.1vw, 45px);
    font-weight: 800;
    letter-spacing: -1.7px;
    line-height: 1.04;
}

.password-reset-success h2 {
    font-size: 39px;
}

.password-reset-lead,
.password-reset-success > p {
    margin: 0;
    color: #69645d;
    font-size: 14px;
    line-height: 1.7;
}

.password-reset-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 29px;
}

.password-reset-primary-action,
.password-reset-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-reset-primary-action {
    gap: 15px;
    padding: 0 21px;
    border: 1px solid #ff9418;
    background: #ff9418;
    color: #111 !important;
    box-shadow: 0 9px 22px rgba(255, 148, 24, 0.21);
}

.password-reset-primary-action:hover,
.password-reset-primary-action:focus-visible {
    border-color: #ed8200;
    background: #ed8200;
    color: #111 !important;
    transform: translateY(-1px);
}

.password-reset-primary-action[disabled] {
    border-color: #dfdeda;
    background: #dfdeda;
    color: #9c9993 !important;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.password-reset-secondary-action {
    min-height: 46px;
    padding: 0 8px;
    color: #252525 !important;
}

.password-reset-secondary-action:hover,
.password-reset-secondary-action:focus-visible {
    color: #e77d00 !important;
}

.password-reset-help-panel {
    margin-top: 33px;
    padding-top: 24px;
    border-top: 1px solid #e7e4e0;
}

.password-reset-help-panel h2 {
    margin: 0 0 14px;
    color: #222;
    font-size: 13px;
    font-weight: 800;
}

.password-reset-help-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-reset-help-panel li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 9px 0;
    color: #6b665f;
    font-size: 12px;
    line-height: 1.45;
}

.password-reset-help-panel li > span {
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #f5f4f2;
    color: #ff8a00;
    font-size: 9px;
    font-weight: 900;
}

.password-reset-phone {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #111 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.password-reset-phone > span {
    color: #ff8a00;
    font-size: 17px;
}

.password-reset-support-note {
    margin: 20px 0 0;
    color: #817b74;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.password-reset-support-note a {
    color: #181818 !important;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Valid reset form */
.password-reset-lock-art {
    background: linear-gradient(145deg, #fff8ec 0%, #ffecd1 55%, #ffe2b8 100%);
}

.password-reset-lock-orbit {
    position: relative;
    z-index: 2;
    display: grid;
    width: 300px;
    height: 300px;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 148, 24, 0.29);
    border-radius: 50%;
}

.password-reset-lock-orbit::before,
.password-reset-lock-orbit::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 148, 24, 0.18);
    border-radius: 50%;
}

.password-reset-lock-orbit::before {
    inset: 22px;
}

.password-reset-lock-orbit::after {
    inset: 52px;
}

.password-reset-lock-circle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 180px;
    height: 180px;
    place-items: center;
    border-radius: 50%;
    background: #ff9418;
    color: #fff;
    box-shadow: 0 22px 40px rgba(202, 104, 0, 0.24);
}

.password-reset-lock-svg {
    width: 88px;
    height: 104px;
    overflow: visible;
}

.password-reset-security-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    background: #fff;
    color: #333;
    box-shadow: 0 9px 25px rgba(49, 31, 9, 0.12);
    font-size: 11px;
    font-weight: 800;
}

.password-reset-security-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #ff9418;
}

.chip-encrypted {
    top: 21px;
    left: -13px;
}

.chip-secure {
    top: 70px;
    right: -16px;
}

.chip-protected {
    bottom: 41px;
    left: -6px;
}

.password-reset-eyebrow {
    margin-bottom: 12px;
    color: #ff8500;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

#password_reset_form {
    margin-top: 28px;
}

.password-reset-field {
    margin-bottom: 21px;
}

.password-reset-field > label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.75px;
    line-height: 1.2;
    text-transform: uppercase;
}

.password-reset-input-wrap {
    position: relative;
}

.password-reset-input-wrap input {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 49px 0 46px;
    border: 1px solid #dcd9d4;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-reset-input-wrap input:hover {
    border-color: #bbb6af;
}

.password-reset-input-wrap input:focus {
    border-color: #ff9418;
    box-shadow: 0 0 0 3px rgba(255, 148, 24, 0.13);
}

.password-reset-input-wrap.is-valid input {
    border-color: #1aaa65;
}

.password-reset-input-wrap.is-invalid input {
    border-color: #dd3c45;
}

.password-reset-input-icon,
.password-reset-visibility {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
}

.password-reset-input-icon {
    left: 16px;
    width: 20px;
    color: #b1aaa2;
    font-size: 14px;
}

.password-reset-visibility {
    right: 9px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8d8881;
    cursor: pointer;
    font-size: 15px;
}

.password-reset-visibility:hover,
.password-reset-visibility:focus-visible {
    background: #f5f4f2;
    color: #111;
}

.password-reset-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.password-reset-strength span {
    height: 4px;
    border-radius: 999px;
    background: #e5e2dd;
    transition: background 0.2s ease;
}

.password-reset-strength[data-level="1"] span:nth-child(-n+1) { background: #e5484d; }
.password-reset-strength[data-level="2"] span:nth-child(-n+2) { background: #ef9b22; }
.password-reset-strength[data-level="3"] span:nth-child(-n+3) { background: #d6ad14; }
.password-reset-strength[data-level="4"] span:nth-child(-n+4) { background: #1aaa65; }

.password-reset-field-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.password-reset-field-meta small,
.password-reset-match-message {
    color: #918b84;
    font-size: 10px;
    line-height: 1.4;
}

.password-reset-field-meta small {
    max-width: 285px;
}

.password-reset-field-meta strong {
    flex: 0 0 auto;
    color: #8e8881;
    font-size: 10px;
    line-height: 1.4;
}

.password-reset-match-message {
    display: block;
    margin-top: 8px;
}

.password-reset-match-message.is-valid {
    color: #158a4f;
    font-weight: 800;
}

.password-reset-match-message.is-invalid {
    color: #c9363f;
    font-weight: 800;
}

.password-reset-form-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f0b4b8;
    border-radius: 10px;
    background: #fff3f3;
    color: #a62f36;
    font-size: 12px;
    line-height: 1.5;
}

.password-reset-submit {
    width: 100%;
    min-height: 52px;
    cursor: pointer;
    font-family: inherit;
}

.password-reset-submit.is-busy {
    cursor: wait;
}

.password-reset-sign-in-note {
    margin: 17px 0 0;
    color: #89837c;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.password-reset-sign-in-note a {
    color: #111 !important;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.password-reset-success {
    text-align: center;
}

.password-reset-success-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 50%;
    background: #e7f8ee;
    color: #159252;
    font-size: 35px;
    font-weight: 900;
    box-shadow: 0 0 0 12px #f4fbf7;
}

.password-reset-success .password-reset-eyebrow {
    margin-top: 30px;
}

.password-reset-success > p {
    margin-bottom: 28px;
}

.password-reset-success .password-reset-primary-action {
    width: 100%;
}

@keyframes password-reset-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (max-width: 880px) {
    .password-reset-shell {
        min-height: 0;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .password-reset-card,
    .password-reset-form-card {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .password-reset-content {
        padding-right: 38px;
        padding-left: 38px;
    }

    .password-reset-lock-orbit {
        width: 260px;
        height: 260px;
    }

    .password-reset-lock-circle {
        width: 155px;
        height: 155px;
    }

    .password-reset-lock-svg {
        width: 76px;
        height: 90px;
    }
}

@media (max-width: 720px) {
    .password-reset-shell {
        padding: 24px 16px 30px;
    }

    .password-reset-card,
    .password-reset-form-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .password-reset-art {
        min-height: 270px;
        padding: 28px 24px 24px;
    }

    .password-reset-error-art {
        min-height: 245px;
    }

    .password-reset-mascot {
        width: 220px;
        margin-top: -42px;
        margin-bottom: -5px;
    }

    .password-reset-error-art .password-reset-art-caption span {
        display: none;
    }

    .password-reset-lock-orbit {
        width: 205px;
        height: 205px;
        margin: 0 auto 12px;
    }

    .password-reset-lock-circle {
        width: 125px;
        height: 125px;
    }

    .password-reset-lock-svg {
        width: 62px;
        height: 72px;
    }

    .password-reset-security-chip {
        min-height: 29px;
        padding: 0 9px;
        font-size: 9px;
    }

    .chip-encrypted { top: 7px; left: -22px; }
    .chip-secure { top: 54px; right: -25px; }
    .chip-protected { bottom: 23px; left: -15px; }

    .password-reset-lock-art .password-reset-art-caption span {
        max-width: 310px;
        margin: 0 auto;
    }

    .password-reset-content,
    .password-reset-error-content {
        padding: 38px 28px 40px;
    }

    .password-reset-content h1 {
        font-size: 35px;
    }
}

@media (max-width: 460px) {
    .password-reset-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .password-reset-secondary-action {
        min-height: 38px;
    }

    .password-reset-field-meta {
        display: block;
    }

    .password-reset-field-meta strong {
        display: block;
        margin-top: 5px;
    }

    .password-reset-support-note {
        padding: 0 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .password-reset-mascot {
        animation: none;
    }

    .password-reset-primary-action,
    .password-reset-secondary-action,
    .password-reset-input-wrap input,
    .password-reset-strength span {
        transition: none;
    }
}
