:root {
    --auth-forgot-accent: #25a39a;
    --auth-forgot-accent-dark: #187f78;
    --auth-forgot-accent-soft: #e9fbf8;
    --auth-forgot-highlight: #fb920d;
    --auth-forgot-ink: #203957;
    --auth-forgot-muted: #64748b;
    --auth-forgot-border: #d7e4e7;
    --auth-forgot-focus: rgba(37, 163, 154, 0.14);
    --auth-forgot-error: #be123c;
    --auth-forgot-error-border: #fecdd3;
    --auth-forgot-error-soft: #fff1f3;
}

* {
    box-sizing: border-box;
}

body.auth-forgot-page {
    background:
        radial-gradient(circle at 8% 8%, rgba(37, 163, 154, 0.16), transparent 30%),
        radial-gradient(circle at 92% 92%, rgba(251, 146, 13, 0.12), transparent 32%),
        #f5fafb;
    color: var(--auth-forgot-ink);
    font-family: "Poppins", sans-serif;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body.auth-forgot-page {
        overflow-y: hidden;
    }
}

.auth-forgot-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px;
    position: relative;
}

.auth-forgot-card {
    background: #fff;
    border: 1px solid rgba(199, 225, 222, 0.9);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(32, 57, 87, 0.14);
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(400px, 1.05fr);
    height: min(620px, calc(100svh - 48px));
    max-width: 1080px;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.auth-forgot-story {
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.13), transparent 24%),
        linear-gradient(145deg, var(--auth-forgot-accent-dark), var(--auth-forgot-accent));
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 32px 36px 28px;
    position: relative;
}

.auth-forgot-story::before,
.auth-forgot-story::after {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.auth-forgot-story::before {
    height: 270px;
    right: -145px;
    top: 112px;
    width: 270px;
}

.auth-forgot-story::after {
    bottom: -110px;
    height: 250px;
    left: -110px;
    width: 250px;
}

.auth-forgot-brand {
    align-items: center;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    min-height: 62px;
    padding: 9px 15px;
    position: relative;
    z-index: 2;
}

.auth-forgot-brand img {
    display: block;
    height: 42px;
    max-width: 42px;
    object-fit: contain;
    width: auto;
}

.auth-forgot-brand .auth-brand-lockup {
    align-items: center;
    display: inline-flex;
    gap: 9px;
    white-space: nowrap;
}

.auth-forgot-brand .auth-brand-lockup__wordmark {
    align-items: baseline;
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.auth-forgot-brand .auth-brand-lockup__wordmark > span {
    color: #f38b00;
}

.auth-forgot-brand .auth-brand-lockup__wordmark > strong {
    color: #20bdb8;
    font-weight: 600;
}

.auth-forgot-story__content {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    margin: auto 0;
    max-width: 100%;
    padding: 26px 0 0;
    position: relative;
    width: 100%;
    z-index: 2;
}

.auth-forgot-role-switcher {
    margin-bottom: 26px;
    width: min(100%, 410px);
}

.auth-forgot-role-switcher__label {
    color: rgba(255, 255, 255, 0.76);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.auth-forgot-role-switcher__options {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-forgot-role-switcher__option {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    font-size: 10px;
    font-weight: 800;
    gap: 5px;
    justify-content: center;
    line-height: 1.25;
    min-height: 56px;
    padding: 6px 5px;
    text-align: center;
    text-decoration: none;
}

.auth-forgot-role-switcher__option i {
    font-size: 18px;
}

.auth-forgot-role-switcher__option:hover,
.auth-forgot-role-switcher__option:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.auth-forgot-role-switcher__option.is-active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 10px 24px rgba(18, 59, 76, 0.18);
    color: var(--auth-forgot-accent-dark);
}

.auth-forgot-illustration {
    display: block;
    filter: drop-shadow(0 22px 38px rgba(15, 77, 82, 0.16));
    height: auto;
    max-height: min(330px, 42svh);
    max-width: min(88%, 460px);
    object-fit: contain;
    width: 100%;
}

.auth-forgot-form-panel {
    align-items: center;
    display: flex;
    padding: 34px clamp(34px, 5vw, 70px);
}

.auth-forgot-form-wrap {
    margin: auto;
    max-width: 440px;
    width: 100%;
}

.auth-forgot-form-heading {
    margin-bottom: 24px;
}

.auth-forgot-form-role {
    align-items: center;
    background: var(--auth-forgot-accent-soft);
    border: 1px solid rgba(37, 163, 154, 0.2);
    border-radius: 99px;
    color: var(--auth-forgot-accent-dark);
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    gap: 6px;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    padding: 6px 10px;
    text-transform: uppercase;
}

.auth-forgot-form-role i {
    font-size: 15px;
}

.auth-forgot-form-heading h2 {
    color: var(--auth-forgot-ink);
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 9px;
}

.auth-forgot-form-heading p {
    color: var(--auth-forgot-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.auth-forgot-alert {
    align-items: flex-start;
    border: 1px solid;
    border-radius: 10px;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 9px;
    margin-bottom: 16px;
    padding: 11px 13px;
}

.auth-forgot-alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.auth-forgot-form {
    display: grid;
    gap: 18px;
}

.auth-forgot-field {
    display: grid;
    min-width: 0;
}

.auth-forgot-field label {
    color: var(--auth-forgot-ink);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 8px;
}

.auth-forgot-field label > span {
    color: #e11d48;
    margin-left: 2px;
}

.auth-forgot-input {
    align-items: center;
    background: #f8fbfc;
    border: 1px solid var(--auth-forgot-border);
    border-radius: 10px;
    display: flex;
    min-height: 48px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-forgot-input:focus-within {
    background: #fff;
    border-color: var(--auth-forgot-accent);
    box-shadow: 0 0 0 4px var(--auth-forgot-focus);
}

.auth-forgot-input.has-error,
.auth-forgot-input:has(.is-invalid) {
    border-color: var(--auth-forgot-error-border);
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.08);
}

.auth-forgot-input > i {
    color: #7a8ca4;
    flex: 0 0 46px;
    font-size: 19px;
    text-align: center;
}

.auth-forgot-input input {
    background: transparent;
    border: 0;
    color: var(--auth-forgot-ink);
    flex: 1 1 auto;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    height: 46px;
    min-width: 0;
    outline: 0;
    padding: 0 12px 0 0;
}

.auth-forgot-input input::placeholder {
    color: #9aa8ba;
}

.auth-forgot-field-error,
.auth-forgot-form label.error,
.auth-forgot-form .invalid-feedback {
    align-items: flex-start;
    background: var(--auth-forgot-error-soft);
    border: 1px solid var(--auth-forgot-error-border);
    border-radius: 8px;
    color: var(--auth-forgot-error);
    display: flex;
    font-size: 10px;
    font-weight: 700;
    gap: 7px;
    line-height: 1.4;
    margin: 6px 0 0;
    min-height: 30px;
    padding: 6px 8px;
    text-align: left;
    width: 100%;
}

.auth-forgot-field-error::before,
.auth-forgot-form label.error::before,
.auth-forgot-form .invalid-feedback::before {
    align-items: center;
    background: var(--auth-forgot-error);
    border-radius: 50%;
    color: #fff;
    content: "!";
    display: inline-flex;
    flex: 0 0 15px;
    font-size: 9px;
    font-weight: 900;
    height: 15px;
    justify-content: center;
    line-height: 1;
    width: 15px;
}

.auth-forgot-submit {
    align-items: center;
    background: linear-gradient(135deg, var(--auth-forgot-accent), var(--auth-forgot-accent-dark));
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(37, 163, 154, 0.24);
    color: #fff;
    display: inline-flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}

.auth-forgot-submit:hover,
.auth-forgot-submit:focus-visible {
    box-shadow: 0 16px 30px rgba(37, 163, 154, 0.32);
    color: #fff;
    transform: translateY(-1px);
}

.auth-forgot-submit:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.auth-forgot-back-login {
    margin: 22px 0 0;
    text-align: center;
}

.auth-forgot-back-login a {
    align-items: center;
    color: var(--auth-forgot-accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    text-decoration: none;
}

.auth-forgot-back-login a:hover {
    color: var(--auth-forgot-highlight);
}

.auth-forgot-spinner {
    animation: authForgotSpin 0.75s linear infinite;
}

@keyframes authForgotSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .auth-forgot-shell {
        align-items: flex-start;
        padding: 16px;
    }

    .auth-forgot-card {
        grid-template-columns: 1fr;
        height: auto;
        max-width: 560px;
        min-width: 0;
    }

    .auth-forgot-story {
        padding: 24px;
    }

    .auth-forgot-story__content {
        max-width: 100%;
        padding: 28px 0 0;
    }

    .auth-forgot-role-switcher__options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-forgot-form-heading h2 {
        overflow-wrap: anywhere;
    }

    .auth-forgot-form-panel {
        padding: 34px 24px;
    }
}

@media (max-width: 520px) {
    .auth-forgot-card {
        border-radius: 14px;
    }

    .auth-forgot-role-switcher__options {
        grid-template-columns: 1fr;
    }

    .auth-forgot-form-panel {
        padding: 30px 20px;
    }

    .auth-forgot-form-heading h2 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-forgot-input,
    .auth-forgot-submit {
        transition: none;
    }

    .auth-forgot-spinner {
        animation: none;
    }
}
