/* ===== Base Cleanup ===== */
* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(180, 140, 87, .10), transparent 32%),
        linear-gradient(180deg, #fbfaf6 0%, #f4efe6 100%);
}

hr {
    background-color: #d3d3d3;
    height: 1px;
    border: 0;
    margin: 12px 0;
}

.topleft {
    position: absolute;
    top: -80px;
    left: 5px;
}

div.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: 5px;
}

#need-help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000000;
    padding: 8px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #ea5323;
    color: #fff;
    font-size: 14px;
}

/* ===== Compact Header - kept structurally unchanged ===== */
.site-header {
    padding: 0;
    margin: 0;
}

.header {
    min-height: 72px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
	background: transparent !important;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    height: 52px;
    width: auto;
    mix-blend-mode: multiply;
}

.brand-logo,
.brand-logo a {
    background: transparent !important;
}

.brand h1 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1.1;
}

.tagline {
    margin: 0;
    padding: 0;
    font-size: .80rem;
    line-height: 1;
}

.header-search-box {
    display: flex;
    align-items: center;
}

.user-box {
    display: flex;
    align-items: center;
}

.user-box .container {
    margin: 0;
    padding: 0;
}

.user-box br {
    display: none;
}

.profile-image {
    width: 28px !important;
    height: 28px !important;
}

.user-box img {
    height: 18px;
    width: auto;
}

.navbar-expand-md,
.navbar-nav {
    padding: 0;
    margin: 0;
}

/* ===== Modern Page Layout ===== */
#main-content {
    max-width: 1120px;
    margin-top: 18px !important;
    padding: 0 18px 44px 18px;
}

#content-home.page {
    padding-top: 0;
}

/* ===== Modern Photo Strip - no image distortion ===== */
#topsection {
    width: 100%;
    max-width: 940px;
    margin: 10px auto 64px auto !important;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    clear: both;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(220, 208, 190, .72);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(47, 37, 24, .10);
}

#mainimage1block,
#mainimage2block,
#mainimage3block {
    float: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffdf8;
    border: 1px solid #e7ded1;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(49, 38, 25, .16);
    transform: none !important;
}

#mainimage1block img,
#mainimage2block img,
#mainimage3block img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 230px !important;
    object-fit: contain !important;
    border-radius: 12px;
}

#mainimage2block {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 30px rgba(49, 38, 25, .20);
}

.clear {
    display: none !important;
}

/* ===== Auth0 SSO notice ===== */
#SSOTitle {
    max-width: 720px;
    margin: 0 auto 24px auto;
    padding: 16px 20px;
    background: #fffdf8;
    border: 1px solid #e6ddcf;
    border-radius: 16px;
    color: #102b45;
    box-shadow: 0 8px 20px rgba(16, 43, 69, .08);
}


/* ===== Login Layout With Info Cards ===== */
.login-layout {
    max-width: 1060px;
    margin: 0 auto 0 auto !important;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
    clear: both;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    position: relative;
    background: #fffdf8;
    border: 1px solid #e5dac9;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 14px 32px rgba(16, 43, 69, .10);
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #102b45, #98723f, #b48c57);
}

.info-card h3 {
    margin: 0 0 10px 0;
    color: #102b45;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.info-card p {
    margin: 0;
    color: #4f4a43;
    font-size: .98rem;
    line-height: 1.6;
}

.info-card .register-link {
    display: inline-block;
    margin-top: 14px;
}

/* ===== Polished Login Box ===== */
.login-section {
    max-width: none;
    margin: 0 !important;
    clear: both;
}

.login-card {
    background: #fffdf8;
    border: 1px solid #e5dac9;
    border-radius: 22px;
    box-shadow:
        0 20px 45px rgba(16, 43, 69, .14),
        0 1px 0 rgba(255, 255, 255, .8) inset;
    overflow: hidden;
}

.login-card-header {
    position: relative;
    padding: 24px 30px 18px 30px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(180, 140, 87, .16), rgba(255, 255, 255, .94)),
        #f7f0e5;
    border-bottom: 1px solid #e5dac9;
}

.login-card-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #102b45, #98723f, #b48c57);
}

.login-card-header h4 {
    margin: 0;
    color: #102b45;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.28;
}

.login-card-header p {
    max-width: 465px;
    margin: 10px auto 0 auto;
    color: #4f4a43;
    font-size: .95rem;
    line-height: 1.45;
}

.login-card-body {
    padding: 24px 30px 28px 30px;
}

.sso-form,
.standard-login-form {
    margin: 0;
}

.sso-button {
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    border: 1px solid #52783c;
    color: #315f23;
    background: #ffffff;
    transition: all .18s ease-in-out;
}

.sso-button:hover {
    color: #fff;
    background: #52783c;
    box-shadow: 0 8px 18px rgba(82, 120, 60, .22);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #897d6e;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2d7c7;
}

.login-alert {
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #f1b5a8;
    background: #fff3f0;
    color: #a7331f;
    text-align: center;
    font-weight: 700;
}

.login-title {
    margin: 0 0 16px 0;
    color: #102b45;
    font-size: 1.28rem;
    font-weight: 800;
    text-align: center;
}

.login-field {
    margin-bottom: 14px;
}

.login-field label {
    display: block;
    margin: 0 0 6px 0;
    color: #4d3f2e;
    font-size: .88rem;
    font-weight: 800;
}

.login-input {
    width: 100%;
    height: 46px;
    padding: 10px 13px;
    border: 1px solid #d4c6b3;
    border-radius: 12px;
    background: #ffffff;
    color: #2b2b2b;
    font-size: 1rem;
    outline: none;
    transition: border-color .18s ease-in-out, box-shadow .18s ease-in-out;
}

.login-input:focus {
    border-color: #98723f;
    box-shadow: 0 0 0 4px rgba(152, 114, 63, .16);
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.login-submit {
    min-width: 145px;
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    background: linear-gradient(180deg, #b48c57, #92703f);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(111, 84, 46, .24);
}

.login-submit:hover {
    background: linear-gradient(180deg, #c09a65, #826236);
}

.forgot-link,
.register-link {
    color: #6f542e;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-register-note {
    margin: 18px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #e8dfd3;
    color: #4f4a43;
    font-size: .96rem;
    line-height: 1.45;
    text-align: center;
}

#content {
    margin-top: 0 !important;
    clear: both;
}

#content-profile pre {
    margin-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header {
        min-height: 60px;
        padding: 5px 12px;
    }

    .brand-logo img {
        height: 42px;
    }

    .brand h1 {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: .72rem;
    }

    .profile-image {
        width: 24px !important;
        height: 24px !important;
    }

    #main-content {
        margin-top: 12px !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    #topsection {
        margin-bottom: 42px !important;
        padding: 14px;
        gap: 14px;
        flex-wrap: wrap;
    }

    #mainimage1block img,
    #mainimage2block img,
    #mainimage3block img {
        max-height: 190px !important;
    }

    #mainimage2block {
        transform: none !important;
    }

    .login-card-header h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-column {
        order: 1;
    }

    .login-card {
        order: 2;
    }
}

@media (max-width: 576px) {
    #topsection {
        flex-direction: column;
        margin-bottom: 34px !important;
    }

    #mainimage1block,
    #mainimage2block,
    #mainimage3block {
        width: 100% !important;
    }

    #mainimage1block img,
    #mainimage2block img,
    #mainimage3block img {
        max-width: 100% !important;
        max-height: none !important;
    }

    .login-card-body,
    .login-card-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-actions {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .login-submit {
        width: 100%;
    }
}

/* ===== 2026 Unified Sign-in Experience ===== */
body {
    min-height: 100vh;
    color: #30353a;
    background: #f7f5f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.site-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.header {
    width: 100%;
    max-width: 1480px;
    min-height: 82px;
    margin: 0 auto;
    padding: 10px 28px;
}

.brand-logo img { height: 58px; }
.brand h1 { color: #102f4c; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; }
.tagline { color: #9b6d32; font-family: Georgia, "Times New Roman", serif; font-size: .85rem; font-style: italic; }

#main-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 44px 24px 56px;
}

#topsection { display: none !important; }

#content-home.page {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-layout {
    width: 100% !important;
    max-width: 1260px !important;
    min-height: 790px;
    margin: 0 auto !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid #ded7cc;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(28, 39, 48, .11);
}

.info-column {
    position: relative;
    min-height: 790px;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #192c39;
}

.heritage-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: sepia(.28) saturate(.72) contrast(.95);
}

.heritage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 28, 45, .04) 18%, rgba(7, 34, 55, .22) 47%, rgba(7, 38, 62, .98) 77%);
}

.heritage-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 36px 48px 42px;
}

.heritage-content h2 {
    margin: 0 0 16px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.08;
}

.heritage-content h2 span { color: #d6aa6b; font-style: italic; }
.heritage-content p { max-width: 450px; margin: 0; color: rgba(255,255,255,.9); font-size: 1.02rem; line-height: 1.65; }

.heritage-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(214, 170, 107, .55);
}

.heritage-links p { margin: 0 0 10px; font-size: .95rem; }
.heritage-links a { color: #efc98f; font-weight: 700; text-decoration: none; }
.heritage-links a:hover { color: #fff; text-decoration: underline; }

.login-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.login-card-header {
    padding: 58px 70px 14px;
    border: 0;
    background: #fff;
}

.language-flags {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.language-flags a {
    display: inline-flex;
}

.language-flags img {
    display: block;
}

.login-card-header::before { display: none; }
.login-card-header h4 { color: #102f4c; font-size: 2.15rem; font-style: normal; }
.login-card-header p { margin-top: 12px; color: #62686e; font-size: 1rem; line-height: 1.55; }

.login-card-body { padding: 20px 70px 52px; }

#SSOTitle {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
}

#SSOTitle a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 18px;
    border-radius: 10px;
    color: #fff;
    background: #0b3b60;
    font-size: 1.08rem;
    font-weight: 750;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

#SSOTitle a i { margin-right: 0; }
#SSOTitle a:hover { background: #082f4f; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(8, 47, 79, .2); }

.auth-visible.login-section { margin: 0 !important; }
.sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 17px 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #0b3b60;
}
.sso-button:hover { background: #082f4f; }

#SSOTitle a i,
.sso-button i {
    font-size: 1.45rem;
    font-weight: 400;
}


.auth-visible.login-section { margin: 0 !important; }
.sso-button {
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #0b3b60;
}
.sso-button:hover { background: #082f4f; }

.login-divider { margin: 24px 0 20px; }
.account-label { margin: 0 0 15px; color: #3f464c; font-size: .92rem; font-weight: 700; }
.login-alert { margin-bottom: 18px; }
.login-field { margin-bottom: 16px; }
.login-field label { color: #353b40; font-size: .9rem; }
.login-input { height: 50px; border-color: #d7d1c8; border-radius: 9px; }
.login-input:focus { border-color: #b58a4a; box-shadow: 0 0 0 4px rgba(181,138,74,.14); }

.login-actions { margin-top: 20px; }
.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-width: 180px;
    padding: 13px 22px;
    border-radius: 9px;
    background: #b78435;
    box-shadow: 0 8px 18px rgba(145, 98, 35, .2);
}
.login-submit:hover { background: #9d6e28; }
.forgot-link { color: #5f4930; }
.login-actions {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
}
.account-label { display: none; }

@media (max-width: 900px) {
    #main-content { padding-top: 24px; }
    .login-layout { min-height: 0; grid-template-columns: 1fr; }
    .info-column { min-height: 480px; order: 2; }
    .login-card { order: 1; }
    .heritage-content { padding: 30px; }
}

@media (max-width: 576px) {
    .header { min-height: 68px; padding: 8px 14px; }
    .brand-logo img { height: 46px; }
    .brand h1 { font-size: 1.25rem; }
    #main-content { padding: 18px 12px 30px; }
    .login-layout { border-radius: 14px; }
    .login-card-header { padding: 30px 22px 8px; }
    .login-card-header h4 { font-size: 1.75rem; }
    .login-card-body { padding: 16px 22px 30px; }
    .login-actions { flex-direction: column; }
    .login-submit { width: 100%; }
    .info-column { min-height: 430px; }
    .heritage-content { padding: 26px 24px 30px; }
}