/* ==========================================================================
   Error pages - Warm Ink & Ember
   Used by Faculty/EDU_EBS_FCT_CustomErrorPage.aspx (wired via web.config's
   httpErrors block: 400/401/403/404/500 all execute that page in place).
   Deliberately SELF-CONTAINED: no dependency on facultyportal-v2*.css, no
   webfont/CDN links - an error page should render with as little of the
   failing app as possible. Palette values are the theme's own, inlined.
   (2026-09-23: ported verbatim from StudentPortal\css\error-pages.css - the
   client asked for this page to work the same way there. Its hex values are
   a hair off FacultyPortal's own --fp2-* tokens, e.g. #FBF4E8 vs this
   project's --fp2-bg #F7F2E8 - imperceptible in practice, and self-contained
   was the deliberate point of the original, so left as-is rather than
   re-tuned to match exactly.) */

* { box-sizing: border-box; margin: 0; padding: 0; }

body.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #FBF4E8;
    color: #241F18;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.error-page form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.err-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 24px;
}

.err-card {
    width: 100%;
    max-width: 560px;
    background: #FFFFFF;
    border: 1px solid #EAE3D6;
    border-radius: 14px;
    box-shadow: 0 3px 12px -6px rgba(60, 44, 28, .10), 0 1px 4px -2px rgba(60, 44, 28, .06);
    padding: 40px 36px 28px;
    text-align: center;
}

.err-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #F5E4DB;
    color: #B0553D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.err-icon-wrap svg { width: 26px; height: 26px; }

.err-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7D7365;
}

.err-title {
    margin-top: 8px;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
    color: #241F18;
}

.err-title span { color: #D8580E; }

.err-msg {
    margin: 12px auto 0;
    max-width: 420px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #7D7365;
}

.err-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.err-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s ease, background .15s ease, transform .15s ease;
}

.err-btn svg { width: 15px; height: 15px; }

.err-btn--primary {
    background: linear-gradient(135deg, #F6975F, #D8580E 92%);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(216, 88, 14, .38);
}

.err-btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; text-decoration: none; }

.err-btn--ghost {
    background: #FFFFFF;
    color: #241F18;
    border: 1px solid #D8CDBB;
}

.err-btn--ghost:hover { background: #F9F3EA; color: #241F18; text-decoration: none; }

.err-meta {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #EAE3D6;
    font-size: 11.5px;
    color: #7D7365;
}

.err-meta strong { color: #241F18; font-weight: 600; }

.err-copyright {
    text-align: center;
    padding: 14px 16px 18px;
    font-size: 11px;
    color: #AAA090;
}

@media (max-width: 480px) {
    .err-card { padding: 28px 18px 20px; }
    .err-title { font-size: 24px; }
    .err-actions { flex-direction: column; }
    .err-btn { justify-content: center; }
}
