/* Shared presentation for password recovery and feedback. Form processors are unchanged. */
#content > .wrapper:has(> .fp-page) > h1.art { display: none; }
#content .fp-page {
    max-width: 600px;
    margin: 30px auto 40px;
    color: #243b53;
    font: 15px/1.6 Inter, "Segoe UI", Arial, sans-serif;
}
#content .fp-page *,
#content .fp-page *::before,
#content .fp-page *::after { box-sizing: border-box; }
#content .fp-page :where(div, p, span, form, label, input, button, a) { font: inherit; color: inherit; }
#content .fp-page p { margin: 0; padding: 0; }
#content .fp-page a { color: #014090; text-decoration: underline; text-underline-offset: 3px; }
#content .fp-page a:hover { color: #0a6ebd; }
#content .fp-page a:focus-visible { outline: 2px solid #0a6ebd; outline-offset: 4px; }
#content .fp-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
#content .fp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid #dce8f6;
    border-radius: 12px;
    background: #f0f6fd;
    color: #014090;
}
#content .fp-icon svg { width: 25px; height: 25px; }
#content .fp-heading h1 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #17324f;
    font: 700 28px/1.25 Inter, "Segoe UI", Arial, sans-serif;
    text-shadow: none;
    text-transform: none;
}
#content .fp-heading p { color: #64748b; font-size: 14px; line-height: 1.6; }
#content .fp-form,
#content .fp-result {
    margin: 0;
    padding: 28px;
    border: 1px solid #dde5ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px -20px rgba(1, 40, 90, .45);
}
#content .fp-page .require { color: #b42318; font-size: 12px; vertical-align: baseline; }
#content .fp-field { display: flex; flex-direction: column; min-width: 0; }
#content .fp-field > label { order: 0; }
#content .fp-field > .fp-hint { order: 1; }
#content .fp-field > .err { order: 2; }
#content .fp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#content .fp-field-wide { grid-column: 1 / -1; }
#content .fp-page.fp-feedback { max-width: 760px; }
#content .fp-form label { display: block; margin: 0; padding: 0; white-space: normal; font-size: 13px; line-height: 1.5; font-weight: 600; }
#content .fp-field input,
#content .fp-field textarea,
#content .fp-captcha input.antispam {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 46px;
    margin: 8px 0 0;
    padding: 11px 12px;
    border: 1px solid #cbd6e3;
    border-radius: 7px;
    background: #fff;
    color: #243b53;
    font: 400 16px/1.4 Inter, "Segoe UI", Arial, sans-serif;
    transition: border-color .15s, outline-color .15s;
}
#content .fp-field textarea { min-height: 150px; height: 150px; resize: vertical; }
#content .fp-field input:focus,
#content .fp-field textarea:focus,
#content .fp-captcha input.antispam:focus {
    border-color: #0a6ebd;
    outline: 3px solid rgba(10, 110, 189, .15);
    outline-offset: 1px;
}
#content .fp-form [aria-invalid="true"],
#content .fp-field input:user-invalid,
#content .fp-field textarea:user-invalid,
#content .fp-captcha input:user-invalid { border-color: #d04438; }
#content .fp-page .fp-hint { margin-top: 7px; color: #77869a; font-size: 12px; line-height: 1.5; }
#content .fp-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 0 10px; margin-top: 20px; }
#content .fp-consent input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: #014090; cursor: pointer; }
#content .fp-consent input[type="checkbox"]:focus-visible { outline: 2px solid #0a6ebd; outline-offset: 3px; }
#content .fp-consent > span { min-width: 0; color: #64748b; font-size: 12px; line-height: 1.6; }
#content .fp-consent label { display: inline; font-size: inherit; font-weight: 400; line-height: inherit; cursor: pointer; }
#content .fp-consent > .err { grid-column: 1 / -1; margin-bottom: 8px; }
#content .fp-captcha { margin-top: 24px; }
#content .fp-captcha-controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
#content .fp-captcha-controls img { display: block; flex: 0 0 86px; width: 86px; height: 46px; padding: 3px; border: 1px solid #dde5ef; border-radius: 7px; background: #f5f8fc; object-fit: contain; }
#content .fp-captcha-controls input.antispam { width: 130px !important; margin: 0; }
#content .fp-actions { margin-top: 24px; padding-top: 22px; border-top: 1px solid #edf1f6; }
#content .fp-page .fp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid #014090;
    border-radius: 7px;
    background: #014090;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-shadow: none;
    cursor: pointer;
    transition: background .15s;
}
#content .fp-page .fp-submit:hover { border-color: #0a6ebd; background: #0a6ebd; }
#content .fp-page .fp-submit:focus-visible { outline: 2px solid #0a6ebd; outline-offset: 4px; }
#content .fp-submit span { font-size: 20px; line-height: 1; }
#content .fp-page .fp-help { margin-top: 18px; color: #64748b; font-size: 13px; text-align: center; }
#content .fp-page .err,
#content .fp-code-error { margin-top: 7px; color: #b42318; font-size: 12px; line-height: 1.5; }
#content .fp-result .msg,
#content .fp-result .msginfo { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
@media (max-width: 640px) {
    #content .fp-page { margin-top: 22px; }
    #content .fp-heading { gap: 12px; margin-bottom: 20px; }
    #content .fp-heading h1 { font-size: 24px; }
    #content .fp-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; }
    #content .fp-icon svg { width: 22px; height: 22px; }
    #content .fp-form, #content .fp-result { padding: 22px 18px; }
    #content .fp-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    #content .fp-field input, #content .fp-field textarea, #content .fp-captcha input.antispam, #content .fp-submit { transition: none; }
}
