.forgot-page {
    min-height: calc(100vh - 92px);
    display: grid;
    place-items: center;
    padding: 64px 20px;
    background:
        radial-gradient(circle at 15% 18%, rgba(150, 25, 176, .13), transparent 32%),
        radial-gradient(circle at 88% 80%, rgba(96, 2, 117, .1), transparent 30%),
        #faf6fb;
}

.forgot-card {
    width: min(100%, 560px);
    padding: 45px;
    border: 1px solid rgba(96, 2, 117, .1);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(54, 0, 67, .14);
    text-align: center;
}

.forgot-card__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--clr-navbar, #9215aa), var(--secondary-color, #600275));
    box-shadow: 0 14px 30px rgba(96, 2, 117, .24);
    color: #fff;
    font-size: 27px;
}

.forgot-card__eyebrow {
    color: var(--clr-navbar, #9215aa);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.forgot-card h1 {
    margin: 8px 0 12px;
    color: var(--secondary-color, #600275);
    font-size: clamp(30px, 5vw, 43px);
    font-weight: 800;
    line-height: 1.08;
}

.forgot-card > p {
    max-width: 440px;
    margin: 0 auto 28px;
    color: #817984;
    font-size: 14px;
    line-height: 1.6;
}

.forgot-form {
    display: grid;
    gap: 18px;
    margin-top: 27px;
    text-align: left;
}

.forgot-field label {
    display: block;
    margin-bottom: 8px;
    color: #514b54;
    font-size: 12px;
    font-weight: 800;
}

.forgot-field > div {
    position: relative;
}

.forgot-field i {
    position: absolute;
    top: 50%;
    left: 17px;
    color: #a763b5;
    font-size: 16px;
    transform: translateY(-50%);
}

.forgot-field input {
    width: 100%;
    height: 54px;
    padding: 10px 16px 10px 48px;
    border: 1px solid rgba(96, 2, 117, .18);
    border-radius: 13px;
    outline: 0;
    background: #fbf8fc;
    color: #302a33;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.forgot-password-input input {
    padding-right: 52px;
}

.forgot-password-input .forgot-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    color: var(--clr-navbar, #9215aa);
    transform: translateY(-50%);
}

.forgot-password-input .forgot-password-toggle i {
    position: static;
    color: inherit;
    font-size: 15px;
    transform: none;
}

.forgot-password-input .forgot-password-toggle:hover,
.forgot-password-input .forgot-password-toggle:focus-visible {
    background: rgba(146, 21, 170, .08);
    box-shadow: none;
    filter: none;
}

.forgot-field input:focus {
    border-color: var(--clr-navbar, #9215aa);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(146, 21, 170, .1);
}

.forgot-form button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    padding: 13px 22px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--clr-navbar, #9215aa), var(--secondary-color, #600275));
    box-shadow: 0 13px 28px rgba(96, 2, 117, .23);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .18s ease, box-shadow .18s ease;
}

.forgot-form button:hover,
.forgot-form button:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(96, 2, 117, .3);
}

.forgot-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
    padding: 15px 17px;
    border: 1px solid rgba(25, 135, 84, .18);
    border-radius: 12px;
    background: rgba(25, 135, 84, .07);
    color: #17683f;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.forgot-notice--error {
    border-color: rgba(205, 40, 64, .18);
    background: rgba(205, 40, 64, .07);
    color: #a51e34;
}

.forgot-card__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: var(--clr-navbar, #9215aa);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.forgot-card__back:hover,
.forgot-card__back:focus-visible {
    color: var(--secondary-color, #600275);
    text-decoration: underline;
}

html.dark_theme .forgot-page {
    background: #16031b;
}

html.dark_theme .forgot-card {
    border-color: rgba(255, 255, 255, .1);
    background: #26042e;
}

html.dark_theme .forgot-card h1,
html.dark_theme .forgot-field label {
    color: #fff;
}

html.dark_theme .forgot-card > p {
    color: #c8bdca;
}

html.dark_theme .forgot-field input {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

@media (max-width: 600px) {
    .forgot-page {
        min-height: calc(100vh - 72px);
        padding: 34px 14px;
    }

    .forgot-card {
        padding: 34px 22px;
        border-radius: 21px;
    }

    .forgot-card__icon {
        width: 62px;
        height: 62px;
        border-radius: 19px;
    }
}
