.password-reset-shell {
    flex: 1 0 auto;
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    padding: 18px 16px 42px;
    box-sizing: border-box;
}

.password-reset-logo {
    margin: 0 auto 12px;
    text-align: center;
}

.password-reset-logo img {
    display: block;
    width: 385px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.password-reset-language {
    margin-bottom: 14px;
    text-align: center;
}

.password-reset-language .btn {
    min-width: 92px;
    margin: 0 3px;
    border-color: #d7e1eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.password-reset-card {
    overflow: hidden;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(12, 38, 67, 0.12);
}

.password-reset-card__head {
    padding: 27px 28px 21px;
    background:
        radial-gradient(circle at 10% 0%, rgba(32, 184, 216, 0.19), transparent 42%),
        linear-gradient(135deg, #102d50 0%, #0b1d35 100%);
    color: #ffffff;
    text-align: center;
}

.password-reset-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: #66d9ef;
    font-size: 25px;
}

.password-reset-card__head h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
}

.password-reset-card__head p {
    max-width: 440px;
    margin: 0 auto;
    color: #c9d8e8;
    font-size: 13px;
    line-height: 1.9;
}

.password-reset-card__body {
    padding: 25px 28px 28px;
}

.password-reset-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.password-reset-progress__item {
    position: relative;
    padding-top: 12px;
    color: #8796a7;
    font-size: 11px;
    text-align: center;
}

.password-reset-progress__item::before {
    position: absolute;
    top: 0;
    right: 5px;
    left: 5px;
    height: 4px;
    border-radius: 999px;
    background: #e5ebf1;
    content: '';
}

.password-reset-progress__item.is-active,
.password-reset-progress__item.is-complete {
    color: #12385f;
    font-weight: 700;
}

.password-reset-progress__item.is-active::before {
    background: #20b8d8;
}

.password-reset-progress__item.is-complete::before {
    background: #2aa66a;
}

.password-reset-card form {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.password-reset-card .form-group {
    margin-bottom: 17px;
}

.password-reset-card label {
    display: block;
    margin-bottom: 8px;
    color: #31465c;
    font-size: 13px;
    font-weight: 700;
}

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

.password-reset-input > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: #8091a4;
    transform: translateY(-50%);
}

.password-reset-card .form-control,
.password-reset-card form input[type='text'],
.password-reset-card form input[type='tel'],
.password-reset-card form input[type='password'] {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 10px 43px 10px 14px;
    border: 1px solid #cbd7e2;
    border-radius: 11px;
    background: #f9fbfd;
    color: #1e3043;
    font-size: 15px;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-reset-card .form-control:focus {
    border-color: #20a9c6;
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(32, 184, 216, 0.13);
}

.password-reset-card .otp-code-input {
    direction: ltr;
    padding-right: 14px;
    padding-left: 14px;
    letter-spacing: 0.38em;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.password-reset-help {
    margin: 8px 0 0;
    color: #77889a;
    font-size: 12px;
    line-height: 1.8;
}

.password-reset-sent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 19px;
    padding: 13px 14px;
    border: 1px solid #bee7d2;
    border-radius: 12px;
    background: #f1fbf6;
    color: #246443;
    line-height: 1.8;
}

.password-reset-sent i {
    margin-top: 4px;
    color: #2aa66a;
    font-size: 18px;
}

.password-reset-primary {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #20b8d8 0%, #1687b7 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 9px 20px rgba(24, 151, 188, 0.24);
}

.password-reset-primary:hover,
.password-reset-primary:focus {
    background: linear-gradient(135deg, #1ba9c8 0%, #137aa7 100%);
    color: #ffffff;
}

.password-reset-primary[disabled] {
    opacity: 0.62;
    box-shadow: none;
}

.password-reset-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.password-reset-secondary-actions .btn-link {
    padding: 7px 4px;
    color: #41617f;
    font-size: 12px;
}

.password-reset-message {
    display: none;
    margin-top: 17px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
}

.password-reset-message.is-success {
    display: block;
    border: 1px solid #bce5cf;
    background: #effaf4;
    color: #236542;
}

.password-reset-message.is-error {
    display: block;
    border: 1px solid #efc5c5;
    background: #fff4f4;
    color: #9a3434;
}

.password-reset-message.is-warning {
    display: block;
    border: 1px solid #f0d79b;
    background: #fff9ea;
    color: #80601d;
}

.password-reset-links {
    margin-top: 18px;
    text-align: center;
}

.password-reset-links .btn {
    margin: 3px 5px;
}

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

.password-reset-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 2px auto 17px;
    border-radius: 22px;
    background: #fff0f0;
    color: #bb4141;
    font-size: 30px;
}

.password-reset-state h2 {
    margin: 0 0 10px;
    color: #20374d;
    font-size: 19px;
}

.password-reset-state p {
    margin-bottom: 20px;
    color: #67798b;
    line-height: 1.9;
}

html[lang='fa'] .password-reset-card,
html[lang='fa'] .password-reset-card input,
html[lang='fa'] .password-reset-card button,
html[lang='fa'] .password-reset-card .btn {
    font-family: Vazirmatn, Vazir, Tahoma, Arial, sans-serif;
}

html[lang='fa'] .password-reset-card {
    direction: rtl;
    text-align: right;
}

html[lang='fa'] .password-reset-input > i {
    right: 15px;
    left: auto;
}

html[lang='fa'] .password-reset-card .form-control,
html[lang='fa'] .password-reset-card form input[type='text'],
html[lang='fa'] .password-reset-card form input[type='tel'],
html[lang='fa'] .password-reset-card form input[type='password'] {
    padding-right: 43px;
    padding-left: 14px;
}

html[lang='fa'] .password-reset-card .otp-code-input {
    padding-right: 14px;
}

@media (max-width: 560px) {
    .password-reset-shell {
        padding: 13px 11px 30px;
    }

    .password-reset-card {
        border-radius: 15px;
    }

    .password-reset-card__head {
        padding: 23px 18px 19px;
    }

    .password-reset-card__body {
        padding: 21px 17px 23px;
    }

    .password-reset-secondary-actions {
        flex-direction: column;
    }

    .password-reset-secondary-actions .btn-link {
        width: 100%;
    }
}
