/* ==========================================================================
   Shared styling for the public portal error pages:
     error.aspx          (admin / default / catch-all, audience-adaptive)
     ClientError.aspx    (client portal area)
     LinguistError.aspx  (linguist portal area)
   One copy here so a tweak lifts all three. See project_portal_auth_session_model.
   ========================================================================== */
html, body { height: 100%; background-color: #0d2a6e; }
body.err-bg {
    margin: 0;
    font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
    background-color: #0d2a6e;
    background-image: url(/assets/images/logolock.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}
body.err-bg:before {
    content: "";
    position: fixed; inset: 0;
    background: linear-gradient(135deg, rgba(20,40,80,.55), rgba(20,40,80,.25));
    z-index: 0;
}
.err-wrap {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.err-card {
    width: 100%; max-width: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.10);
    padding: 36px 32px 28px;
    text-align: center;
}
.err-logo {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0d2a6e, #1f6fb2);
    border-radius: 12px;
    padding: 14px 22px;
    margin-bottom: 22px;
    width: 100%;
}
.err-logo img { max-height: 52px; max-width: 100%; }
.err-icon {
    width: 78px; height: 78px; border-radius: 50%;
    background: #fdecea; color: #c0392b;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 36px;
}
.err-title {
    font-size: 24px; font-weight: 600;
    color: #1a2944; margin: 0 0 6px;
}
.err-sub {
    color: #6c7a90; font-size: 15px;
    margin: 0 0 22px; line-height: 1.5;
}
.err-help {
    background: #f6f8fa;
    border: 1px solid #e5e9ed;
    border-radius: 8px;
    padding: 12px 14px;
    color: #4d6582;
    font-size: 13px;
    margin: 18px 0;
    text-align: left;
}
.err-help strong { color: #34495e; }
.err-choose { margin: 0 0 10px; color: #6c7a90; font-size: 13px; font-weight: 600; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-row a { flex: 1 1 auto; }
.err-other { margin-top: 14px; }
.err-other summary { cursor: pointer; color: #1f6fb2; font-size: 13px; font-weight: 600; list-style: none; outline: none; }
.err-other summary::-webkit-details-marker { display: none; }
.err-other[open] summary { margin-bottom: 6px; }
.btn-err-primary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    height: 46px; padding: 0 22px;
    border-radius: 8px;
    font-weight: 600; font-size: 15px;
    background: #1f6fb2; border-color: #1f6fb2; color: #fff;
    text-decoration: none;
}
.btn-err-primary:hover, .btn-err-primary:focus { background: #195a91; border-color: #195a91; color: #fff; text-decoration: none; }
.btn-err-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    height: 46px; padding: 0 22px;
    border-radius: 8px;
    font-weight: 600; font-size: 15px;
    background: #fff; color: #1f6fb2;
    border: 1px solid #1f6fb2;
    text-decoration: none;
}
.btn-err-secondary:hover, .btn-err-secondary:focus { background: #eef5fb; color: #195a91; text-decoration: none; }
.err-footer {
    margin-top: 18px;
    color: #6c7a90; font-size: 12px;
}
@media (max-width: 480px) {
    .err-card { padding: 28px 22px 22px; }
    .err-title { font-size: 20px; }
    .btn-row { flex-direction: column; }
    .btn-err-primary, .btn-err-secondary { width: 100%; }
}
