.password-reset-page {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #fffaf5 0%, #f1f8f1 100%);
}

.password-reset-card {
    width: min(100%, 480px);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 77, 43, 0.10);
}

.password-reset-card__header {
    padding: 1.6rem 1.75rem 1.35rem;
    background: linear-gradient(135deg, #fff1ed 0%, #edf7ee 100%);
    border-bottom: 3px solid #c62828;
}

.password-reset-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.8rem;
    border-radius: 50%;
    background: #2f6b3c;
    color: #ffffff;
}

.password-reset-card h1 {
    margin: 0;
    color: #1f4d2b;
    font-size: 1.45rem;
    font-weight: 700;
}

.password-reset-card__header p,
.password-reset-message {
    color: #4b5563;
    line-height: 1.6;
}

.password-reset-card__header p {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
}

.password-reset-card__body {
    padding: 1.6rem 1.75rem;
}

.password-reset-card form p {
    margin-bottom: 1rem;
}

.password-reset-card label {
    display: block;
    margin-bottom: 0.4rem;
    color: #1f2937;
    font-size: 0.88rem;
    font-weight: 600;
}

.password-reset-card input[type="email"],
.password-reset-card input[type="password"],
.password-reset-card input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    color: #1f2937;
    background: #ffffff;
}

.password-reset-card input:focus {
    border-color: #2f6b3c;
    outline: 3px solid rgba(47, 107, 60, 0.14);
}

.password-reset-card .helptext,
.password-reset-card ul.helptext {
    display: block;
    margin-top: 0.35rem;
    padding-left: 0;
    color: #6b7280;
    font-size: 0.78rem;
    list-style: none;
}

.password-reset-card ul.errorlist {
    margin: 0.35rem 0 0;
    padding: 0;
    color: #8f1d1d;
    font-size: 0.82rem;
    list-style: none;
}

.password-reset-button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    background: #2f6b3c;
    color: #ffffff;
    font-weight: 700;
}

.password-reset-button:hover,
.password-reset-button:focus {
    background: #1f4d2b;
    color: #ffffff;
}

.password-reset-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2f6b3c;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.password-reset-link:hover {
    color: #c62828;
    text-decoration: underline;
}

.password-reset-message {
    margin: 0;
}

@media (max-width: 575.98px) {
    .password-reset-page {
        min-height: calc(100vh - 1rem);
        padding: 1rem 0.75rem;
    }

    .password-reset-card__header,
    .password-reset-card__body {
        padding: 1.25rem;
    }

    .password-reset-card h1 {
        font-size: 1.25rem;
    }
}

/* Match the guest login screen on the reset flow. */
.password-reset-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0b3d2e 0%, #145a32 50%, #1e8449 100%);
    position: relative;
    overflow: hidden;
}

.password-reset-auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 920px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.password-reset-auth-wrapper .auth-promo {
    display: none;
    flex: 1;
    padding: 3rem 2.5rem;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, rgba(11, 61, 46, 0.95), rgba(20, 90, 50, 0.9));
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.password-reset-auth-wrapper .promo-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.8rem;
}

.password-reset-auth-wrapper .promo-title {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.password-reset-auth-wrapper .promo-sub {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.password-reset-auth-wrapper .feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-reset-auth-wrapper .feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 500;
}

.password-reset-auth-wrapper .feat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #4ade80;
}

.password-reset-auth-wrapper .promo-footer {
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.password-reset-auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.97);
}

.password-reset-auth-header {
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(135deg, #0b3d2e, #145a32);
    color: #fff;
    text-align: center;
}

.password-reset-auth-header .logo-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.9rem;
}

.password-reset-auth-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.password-reset-auth-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.85rem;
}

.password-reset-auth-body {
    padding: 2rem 2rem 1.5rem;
}

.password-reset-auth-body .password-reset-card {
    width: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.password-reset-auth-body .password-reset-card__header {
    display: none;
}

.password-reset-auth-body .password-reset-card__body {
    padding: 0;
}

@media (min-width: 768px) {
    .password-reset-auth-wrapper .auth-promo {
        display: flex;
    }

    .password-reset-auth-card {
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {
    .password-reset-auth-page {
        align-items: flex-start;
        padding: 5rem 0.75rem 1.5rem;
    }

    .password-reset-auth-wrapper {
        border-radius: 18px;
    }

    .password-reset-auth-header,
    .password-reset-auth-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}