@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --t5-navy: #002D62;
    --t5-navy-dark: #001a3a;
    --t5-gold: #D4AF37;
    --t5-bg: #F8F9FA;
    --t5-muted: #6c757d;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--t5-bg);
}

/* ==========================================================================
   LPU THEME: MODERN SPLIT LOGIN HERO SECTION
   ========================================================================== */
.t5-login-hero-main {
    flex: 1 0 auto;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #fff8f1 0%, #fff0e2 100%);
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
}

/* CU Institute (#fa0d0d) left-banner theme override inside LPU theme */
body:has(.t5-cu-theme) {
    background: #fff5f5 !important;
}
.t5-login-hero-main.t5-cu-theme {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}
.t5-login-hero-main.t5-cu-theme .t5-tag-dot {
    background: #fa0d0d;
}
.t5-login-hero-main.t5-cu-theme .t5-hero-sub {
    color: #ffecec;
}
.t5-login-hero-main.t5-cu-theme .t5-pill {
    background: linear-gradient(180deg, rgba(250, 13, 13, 0.65), rgba(184, 7, 7, 0.58));
    box-shadow: 0 8px 22px rgba(120, 5, 5, 0.25), inset 0 0 14px rgba(255, 214, 214, 0.22);
}
.t5-login-hero-main.t5-cu-theme .t5-pill:hover {
    box-shadow: 0 10px 28px rgba(120, 5, 5, 0.35);
}
.t5-login-hero-main.t5-cu-theme .t5-pill-ic {
    background: linear-gradient(180deg, #ff5c5c, #d40909);
}

.t5-hero-stage {
    display: flex;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    position: relative;
    min-height: 720px;
    align-items: stretch;
}

/* --------------------------------------------------------------------------
   LEFT HERO: ORANGE ARTWORK & FEATURE PILLS
   -------------------------------------------------------------------------- */
.t5-hero-left {
    position: relative;
    flex: 0 0 57%;
    width: 57%;
    min-height: 720px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 70px 40px 0 60px;
    z-index: 2;
}

.t5-hero-wave-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.t5-hero-cap {
    position: absolute;
    left: 55px;
    top: 60px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
}

.t5-hero-dots-wrap {
    position: absolute;
    left: 20px;
    top: 240px;
    z-index: 2;
    pointer-events: none;
}

.t5-hero-text-wrap {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 660px;
    margin: 0 auto 30px auto;
}

.t5-hero-tagline {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 40px;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.t5-tag-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f58220;
    margin: 0 12px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.t5-tag-accent {
    position: relative;
    display: inline-block;
}

.t5-hero-swoosh {
    position: absolute;
    left: -6px;
    bottom: -15px;
    width: 95px;
    height: 16px;
    pointer-events: none;
}

.t5-hero-sparkles {
    position: absolute;
    right: -26px;
    top: -22px;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.t5-hero-sub {
    color: #fff4e9;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    margin-top: 12px;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Floating Glassmorphic Pills */
.t5-hero-pills {
    position: absolute;
    right: 40px;
    top: 230px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 5;
}

.t5-pill {
    height: 74px;
    min-width: 250px;
    border-radius: 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.48);
    background: linear-gradient(180deg, rgba(245, 130, 32, 0.65), rgba(211, 91, 10, 0.58));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(125, 59, 10, 0.22), inset 0 0 14px rgba(255, 224, 194, 0.22);
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.t5-pill:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 28px rgba(125, 59, 10, 0.32);
}

.t5-pill-1 {
    transform: translateX(0);
}

.t5-pill-2 {
    transform: translateX(20px);
}

.t5-pill-2:hover {
    transform: translateX(25px);
}

.t5-pill-3 {
    transform: translateX(35px);
}

.t5-pill-3:hover {
    transform: translateX(40px);
}

.t5-pill-ic {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffad5c, #e87516);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.35);
}

.t5-pill-content {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.t5-pill-content span {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.95;
}

.t5-pill-content strong {
    font-size: 16px;
    font-weight: 600;
}

/* Student Image */
.t5-girl-wrap {
    position: absolute;
    left: 20px;
    bottom: 0;
    z-index: 4;
    pointer-events: none;
    line-height: 0;
}

.t5-girl-img {
    max-height: 530px;
    width: auto;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   RIGHT HERO: WELCOME & LOGIN CARD
   -------------------------------------------------------------------------- */
.t5-hero-right {
    flex: 0 0 43%;
    width: 43%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    position: relative;
    z-index: 5;
}

.t5-welcome-wrap {
    text-align: center;
    position: relative;
    margin-bottom: 26px;
    width: 100%;
    max-width: 530px;
}

.t5-welcome-spark {
    position: absolute;
    left: 24px;
    top: -24px;
    pointer-events: none;
}

.t5-welcome-heading {
    font-size: 34px;
    font-weight: 700;
    color: #0b1330;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin: 0 0 6px 0;
    white-space: nowrap;
}

.t5-welcome-heading span {
    color: #E06319;
}

.t5-welcome-sub {
    font-size: 17px;
    font-weight: 600;
    color: #6b7280;
    line-height: 24px;
    margin-bottom: 8px;
}

.t5-welcome-uline {
    width: 66px;
    height: 4px;
    border-radius: 2px;
    background: #f9b814;
    margin: 0 auto;
}

/* Modern Login Card */
.t5-login-card {
    width: 100%;
    max-width: 530px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(40, 90, 180, 0.12), 0 0 0 1px rgba(200, 215, 240, 0.45);
    padding: 38px 42px 34px;
}

.t5-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #0b1330;
    line-height: 38px;
    letter-spacing: -0.3px;
    margin-bottom: 22px;
}

.t5-input-group {
    margin-bottom: 18px;
}

.t5-input-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a2238;
    line-height: 22px;
    margin-bottom: 8px;
}

.t5-input-control-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.t5-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #6b7280;
}

.t5-input-field {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d8dee9;
    border-radius: 13px;
    background: #ffffff;
    padding: 0 16px 0 50px;
    font-size: 15px;
    color: #1a2238;
    font-family: inherit;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.t5-input-field.has-toggle {
    padding-right: 48px;
}

.t5-input-field:focus {
    outline: none;
    border-color: #0a3a92;
    box-shadow: 0 0 0 3.5px rgba(10, 58, 146, 0.12);
}

.t5-input-field::placeholder {
    color: #7b8494;
    opacity: 1;
}

.t5-eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.t5-eye-toggle:hover {
    color: #1a2238;
}

.t5-forgot-wrap {
    margin-top: 4px;
    margin-bottom: 22px;
}

.t5-forgot-link {
    color: #1456e0;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    line-height: 24px;
    transition: color 0.15s ease;
}

.t5-forgot-link:hover {
    color: #0b3fa8;
    text-decoration: underline;
}

.t5-btn-login {
    width: 100%;
    height: 51px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(90deg, #0a3a92, #06306f 60%, #052a62);
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(6, 45, 120, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.t5-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 45, 120, 0.35);
    opacity: 0.97;
}

.t5-btn-login:active {
    transform: translateY(1px);
}

.t5-btn-login[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.t5-register-wrap {
    text-align: center;
    margin-top: 22px;
    font-size: 15px;
    font-weight: 500;
    color: #1a2238;
    line-height: 24px;
}

.t5-register-link {
    color: #1456e0;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.t5-register-link:hover {
    color: #0b3fa8;
}

/* ==========================================================================
   COMPLETE SUPPRESSION OF HEADER & FOOTER ON AUTH PAGES (LOGIN / REGISTER)
   ========================================================================== */
.t5-auth-page-body .topbar,
.t5-auth-page-body .brand-bar,
.t5-auth-page-body .t5-footer,
.t5-auth-page-body footer,
body:has(.t5-auth-page) .topbar,
body:has(.t5-auth-page) .brand-bar,
body:has(.t5-auth-page) .t5-footer,
body:has(.t5-auth-page) footer {
    display: none !important;
}

body:has(.t5-auth-page),
.t5-auth-page-body {
    background: #fff8f1 !important;
}

.t5-auth-page {
    min-height: 100vh !important;
}

/* ==========================================================================
   AUTH LOGO & REGISTRATION PAGE COMPONENTS
   ========================================================================== */
.t5-auth-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.t5-auth-lpu-logo {
    width: 95px;
    height: 95px;
    max-width: 105px;
    max-height: 105px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease;
}

.t5-auth-lpu-logo:hover {
    transform: scale(1.04);
}

.t5-auth-cu-logo {
    width: auto;
    height: 115px;
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease;
}

.t5-auth-cu-logo:hover {
    transform: scale(1.04);
}

.t5-register-card {
    max-width: 600px;
    padding: 34px 38px 28px;
}

.t5-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.t5-form-col {
    flex: 1 1 0;
    min-width: 0;
}

.t5-form-col .t5-input-group {
    margin-bottom: 0;
}

.t5-select-field {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d8dee9;
    border-radius: 13px;
    background-color: #ffffff;
    padding: 0 36px 0 46px;
    font-size: 14.5px;
    color: #1a2238;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.t5-select-field:focus {
    outline: none;
    border-color: #0a3a92;
    box-shadow: 0 0 0 3.5px rgba(10, 58, 146, 0.12);
}

.t5-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t5-captcha-badge {
    flex: 0 0 auto;
    border: 1.5px solid #d8dee9;
    border-radius: 13px;
    background: #f8fafc;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 130px;
    overflow: hidden;
}

.t5-captcha-badge img {
    max-height: 38px;
    width: auto;
    display: block;
}

.t5-captcha-input-wrap {
    flex: 1 1 auto;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES FOR AUTH PAGES
   ========================================================================== */
@media (max-width: 1440px) {
    .t5-hero-left {
        flex: 0 0 55%;
        width: 55%;
        padding-left: 45px;
    }
    .t5-hero-tagline {
        font-size: 28px;
    }
    .t5-hero-sub {
        font-size: 16px;
    }
    .t5-pill {
        min-width: 230px;
        height: 68px;
    }
    .t5-pill-2 {
        transform: translateX(10px);
    }
    .t5-pill-3 {
        transform: translateX(18px);
    }
    .t5-girl-img {
        max-height: 480px;
    }
    .t5-welcome-heading {
        font-size: 30px;
    }
    .t5-login-card {
        padding: 34px 34px 28px;
    }
}

@media (max-width: 1199px) {
    .t5-hero-stage {
        min-height: 660px;
    }
    .t5-hero-left {
        flex: 0 0 52%;
        width: 52%;
        padding: 50px 20px 0 30px;
    }
    .t5-hero-tagline {
        font-size: 24px;
        line-height: 32px;
    }
    .t5-hero-sub {
        font-size: 15px;
    }
    .t5-hero-pills {
        right: 15px;
        top: 200px;
        gap: 16px;
    }
    .t5-pill {
        min-width: 205px;
        height: 62px;
        padding: 0 12px;
        border-radius: 16px;
    }
    .t5-pill-1, .t5-pill-2, .t5-pill-3 {
        transform: none !important;
    }
    .t5-pill-ic {
        width: 44px;
        height: 44px;
        margin-right: 10px;
    }
    .t5-pill-content span {
        font-size: 13px;
    }
    .t5-pill-content strong {
        font-size: 14px;
    }
    .t5-girl-img {
        max-height: 420px;
    }
    .t5-hero-right {
        flex: 0 0 48%;
        width: 48%;
        padding: 40px 20px;
    }
    .t5-welcome-heading {
        font-size: 27px;
    }
    .t5-login-card {
        max-width: 460px;
        padding: 30px 26px 24px;
    }
}

@media (max-width: 991px) {
    .t5-login-hero-main {
        padding: 0;
    }
    .t5-hero-stage {
        flex-direction: column;
        min-height: auto;
    }
    .t5-hero-left {
        flex: 0 0 100%;
        width: 100%;
        min-height: auto;
        padding: 40px 20px 30px;
        align-items: center;
    }
    .t5-hero-wave-bg {
        border-radius: 0 0 32px 32px;
    }
    .t5-hero-cap {
        left: 20px;
        top: 20px;
        width: 40px;
        height: 30px;
    }
    .t5-hero-dots-wrap {
        display: none;
    }
    .t5-hero-text-wrap {
        margin: 10px auto 20px auto;
    }
    .t5-hero-pills {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }
    .t5-pill {
        min-width: 180px;
        height: 56px;
    }
    .t5-girl-wrap {
        display: none;
    }
    .t5-hero-right {
        flex: 0 0 100%;
        width: 100%;
        padding: 36px 16px 50px;
    }
    .t5-welcome-wrap {
        max-width: 500px;
    }
    .t5-welcome-heading {
        font-size: 28px;
        white-space: normal;
    }
    .t5-login-card {
        max-width: 500px;
        margin: 0 auto;
        padding: 32px 28px 26px;
    }
}

@media (max-width: 576px) {
    .t5-hero-left {
        padding: 30px 16px 24px;
    }
    .t5-hero-tagline {
        font-size: 20px;
        line-height: 28px;
        white-space: normal;
    }
    .t5-tag-dot {
        margin: 0 6px;
        width: 6px;
        height: 6px;
    }
    .t5-hero-swoosh, .t5-hero-sparkles {
        display: none;
    }
    .t5-hero-sub {
        font-size: 14px;
        line-height: 1.45;
    }
    .t5-hero-pills {
        gap: 8px;
    }
    .t5-pill {
        min-width: 100%;
        height: 54px;
    }
    .t5-welcome-spark {
        display: none;
    }
    .t5-welcome-heading {
        font-size: 24px;
    }
    .t5-welcome-sub {
        font-size: 15px;
    }
    .t5-login-card {
        padding: 24px 18px 22px;
        border-radius: 20px;
    }
    .t5-card-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    .t5-input-field {
        height: 46px;
        font-size: 16px;
    }
    .t5-btn-login {
        height: 47px;
        font-size: 17px;
    }
    .t5-form-row {
        flex-direction: column;
        gap: 14px;
    }
    .t5-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
    .t5-captcha-badge {
        width: 100%;
    }
    .t5-register-card {
        padding: 24px 18px 22px;
    }
    .t5-auth-lpu-logo {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
    }
}


/* ==========================================================================
   COMMON THEME UTILITIES: TOPBAR, BRAND-BAR, FOOTER & MODALS
   ========================================================================== */
.topbar {
    background: var(--t5-navy) !important;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.topbar a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 400;
}

.topbar a:hover {
    opacity: 0.9;
}

.topbar .follow-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
}

.topbar .social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 6px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #fff !important;
    font-size: 0.8rem;
}

.topbar .social-circle:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Announcement */
.topbar .announce-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--t5-gold);
    color: var(--t5-navy);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: t5-announce-ring 2s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar .announce-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.topbar .announce-btn:hover i {
    animation: t5-announce-shake 0.6s ease;
}

.topbar .announce-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 9px;
    height: 9px;
    border: 2px solid var(--t5-navy);
    border-radius: 50%;
    background: #ef4444;
}

@keyframes t5-announce-ring {
    0% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.55); }
    70% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes t5-announce-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-14deg); }
    75% { transform: rotate(14deg); }
}

.t5-announce-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.t5-announce-modal .modal-header {
    background: var(--t5-navy);
    color: #fff;
    border-bottom: 0;
    padding: 1rem 1.25rem;
}

.t5-announce-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.t5-announce-modal .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
}

.t5-announce-modal .modal-body {
    padding: 1.35rem 1.25rem;
    border-top: 4px solid var(--t5-gold);
}

.t5-announce-text {
    margin: 0;
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
}

.t5-announce-modal .modal-footer {
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
    padding: 0.85rem 1.25rem;
}

/* Branding bar */
.brand-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1;
    padding: 0.5rem 0;
    overflow: hidden;
}

.brand-bar > .container {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    min-height: auto;
}

.brand-bar .adminedit[data-id="logo"] {
    position: absolute;
    left: 12px;
    top: -10px;
    z-index: 3;
}

.brand-logo {
    margin-right: 0;
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0.1rem 0;
    order: 0;
    flex: 1 1 auto;
}

.navbar-brand.brand-logo {
    margin-right: 0;
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
}

.brand-bar .navbar-toggler,
.brand-bar .navbar-collapse {
    margin-left: auto;
    flex: 0 0 auto;
}

.brand-logo .logo,
.logo {
    width: auto;
    max-width: 100%;
    height: 88px;
    max-height: 88px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Full-width banner logo only */
.brand-bar.brand-bar-banner {
    padding: 0;
    border-bottom: 0;
}

.brand-bar.brand-bar-banner > .container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.brand-bar.brand-bar-banner .brand-logo {
    padding: 0;
    line-height: 0;
}

.brand-bar.brand-bar-banner .logo {
    width: 100%;
    height: auto;
    max-height: none;
}

.login-hero-text .brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.01em;
}

.login-hero-text .brand-subtitle {
    font-size: 0.98rem;
    color: #6b7280;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-hero-text .brand-accent {
    display: block;
    width: 50px;
    height: 3px;
    background: #e67e22;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.brand-bar .nav-link {
    color: var(--t5-navy) !important;
    font-weight: 500;
}

.brand-bar .btn-primary,
.btn-primary {
    background-color: var(--t5-navy);
    border-color: var(--t5-navy);
}

.brand-bar .btn-primary:hover,
.btn-primary:hover {
    background-color: var(--t5-navy-dark);
    border-color: var(--t5-navy-dark);
}

.navbar {
    z-index: 1;
}

/* Footer */
.t5-footer,
footer.t5-footer {
    background: var(--t5-navy);
    margin-top: auto;
}

.t5-footer a {
    color: #fff;
    padding: 0 4px;
    text-decoration: none;
}

.t5-footer a:hover {
    color: #dcd6d6;
    text-decoration: underline;
}

.t5-footer .footer-copy {
    font-size: 0.88rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.t5-footer .footer-links {
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.t5-footer .footer-sep {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 4px;
}

.t5-contact-page {
    background: linear-gradient(180deg, #f4f6fb 0%, #ffffff 100%);
    padding: 2.75rem 0 3.25rem;
    min-height: 42vh;
}

.t5-contact-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.t5-contact-nav {
    margin-bottom: 0.85rem;
}

.t5-contact-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--t5-navy);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 0.25rem 0;
}

.t5-contact-home:hover {
    color: #0a2348;
    text-decoration: underline !important;
}

.t5-contact-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.t5-contact-head h1 {
    color: var(--t5-navy);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.t5-contact-head p {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0 0.25rem;
}

.t5-contact-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none !important;
    background: #fafbff;
    height: 100%;
    min-height: 76px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.t5-contact-tile:hover,
.t5-contact-tile:focus {
    border-color: var(--t5-navy);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    outline: none;
}

.t5-contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--t5-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.t5-contact-meta {
    flex: 1;
    min-width: 0;
}

.t5-contact-label {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.t5-contact-value {
    display: block;
    color: #111827;
    font-weight: 600;
    font-size: 1rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.t5-contact-action {
    color: #9ca3af;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.t5-contact-admin {
    text-align: center;
}

.footer-logo-placeholder {
    min-width: 120px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    border: 1px dashed rgba(255,255,255,0.45);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.t5-footer .footer-brand-logo {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.t5-footer .footer-brand-logo img {
    width: auto;
    max-width: 160px;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

/* Features strip above footer */
.t5-features {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 1.25rem 0 1.35rem;
}

.t5-features-row {
    align-items: stretch;
    flex-wrap: nowrap;
}

.t5-feature-col {
    border-right: 1px solid #e5e7eb;
}

.t5-feature-col:last-child {
    border-right: none;
}

.t5-feature-item {
    padding: 0.85rem 1.25rem;
}

.t5-feature-icon {
    color: var(--t5-navy);
    font-size: 1.65rem;
    margin-bottom: 0.45rem;
    min-height: 34px;
    line-height: 1;
}

.t5-feature-icon img {
    max-height: 36px;
    width: auto;
}

.t5-feature-title {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.t5-feature-subtitle {
    color: #1a1a2e;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.t5-feature-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

footer a {
    color: white;
    padding: 8px;
    text-decoration: none;
}

footer a:hover {
    color: #dcd6d6;
}

@media (max-width: 991.98px) {
    .brand-bar {
        padding: 0.5rem 0;
    }

    .brand-bar > .container {
        min-height: auto;
        justify-content: flex-start !important;
        align-items: center;
        max-width: 100%;
    }

    .brand-logo {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        margin-left: 0 !important;
    }

    .brand-logo .logo,
    .logo {
        width: auto;
        max-width: 100%;
        height: 76px;
        max-height: 76px;
        margin: 0;
    }

    .t5-feature-col {
        border-right: 1px solid #e5e7eb;
        border-bottom: none;
        flex: 0 0 25%;
        max-width: 25%;
    }

    .t5-feature-col:nth-child(2n) {
        border-right: 1px solid #e5e7eb;
    }

    .t5-feature-col:last-child,
    .t5-feature-col:nth-child(4n) {
        border-right: none;
    }

    .t5-feature-col:nth-last-child(-n+2) {
        border-bottom: none;
    }
}


@media (max-width: 767.98px) {
    .login-page-main {
        padding-top: 1.25rem;
    }

    /* Topbar: one line, no scroll — smaller fonts on mobile */
    .topbar {
        text-align: left;
        font-size: 0.68rem;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    .topbar .container {
        flex-wrap: nowrap !important;
        gap: 4px 6px;
        justify-content: space-between !important;
        align-items: center !important;
        overflow: hidden;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .topbar-left,
    .topbar-right {
        width: auto;
        max-width: none;
        flex-wrap: nowrap !important;
        flex: 0 1 auto;
        min-width: 0;
        justify-content: flex-start;
        margin-top: 0;
        gap: 2px 5px;
    }

    .topbar-right {
        justify-content: flex-end;
        margin-left: 4px;
        flex: 0 0 auto;
    }

    .topbar-left a,
    .topbar-right a {
        white-space: nowrap;
        word-break: normal;
        font-size: inherit;
        line-height: 1.2;
    }

    .topbar-left a.pe-3 {
        padding-right: 0.35rem !important;
    }

    .topbar .follow-label {
        font-size: inherit;
        white-space: nowrap;
        margin-right: 0.25rem !important;
    }

    .topbar .social-circle {
        width: 22px;
        height: 22px;
        margin-left: 2px;
        font-size: 0.65rem;
        flex-shrink: 0;
    }

    .topbar .adminedit {
        margin-left: 2px !important;
        padding: 0.08rem 0.25rem;
        font-size: 0.58rem;
        line-height: 1;
    }

    /* Brand bar */
    .brand-bar {
        padding: 0.45rem 0;
        background: #fff;
    }

    .brand-bar > .container {
        min-height: auto;
        justify-content: flex-start !important;
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    .brand-logo {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        margin-left: 0 !important;
        display: block;
    }

    .brand-logo .logo,
    .logo {
        width: auto;
        max-width: 100%;
        height: 68px;
        max-height: 68px;
        margin: 0;
        object-fit: contain;
        object-position: left center;
    }

    .brand-bar .navbar-toggler {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        padding: 0.25rem 0.45rem;
        border-color: rgba(0, 45, 98, 0.25);
    }

    .login-hero-text {
        padding: 0 0.75rem;
        margin-bottom: 1.15rem !important;
    }

    .login-hero-text .brand-title {
        font-size: 1.3rem;
        color: #1a1a2e;
        font-weight: 700;
        font-family: Georgia, 'Times New Roman', serif;
    }

    .login-hero-text .brand-subtitle {
        font-size: 0.88rem;
        color: #6b7280;
    }

    .login-hero-text .brand-accent {
        width: 48px;
        margin-top: 0.7rem;
    }

    .login-page-main .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .t5-features {
        padding: 0.9rem 0 1rem;
        background: #fff;
    }

    .t5-feature-item {
        padding: 0.7rem 0.75rem;
    }

    .t5-feature-icon {
        font-size: 1.4rem;
        min-height: 30px;
        margin-bottom: 0.35rem;
        color: var(--t5-navy);
    }

    .t5-feature-icon img {
        max-height: 32px;
    }

    .t5-feature-title {
        font-size: 0.92rem;
    }

    .t5-feature-subtitle {
        font-size: 0.85rem;
    }

    .t5-feature-desc {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .t5-footer {
        padding-top: 1.35rem !important;
        padding-bottom: 1.35rem !important;
        text-align: center;
    }

    .t5-footer .footer-copy {
        font-size: 0.8rem;
        padding: 0 0.75rem;
        line-height: 1.45;
    }

    .t5-footer .footer-links {
        font-size: 0.78rem;
        line-height: 1.7;
        padding: 0 0.5rem;
    }

    .t5-footer .footer-sep {
        margin: 0 2px;
    }

    .t5-footer .footer-brand-logo img {
        max-width: 140px;
        max-height: 42px;
    }

    .t5-contact-page {
        padding: 1.5rem 0 2rem;
        min-height: auto;
    }

    .t5-contact-card {
        border-radius: 14px;
        padding: 1.35rem 1rem;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    .t5-contact-head {
        margin-bottom: 1.1rem;
    }

    .t5-contact-head h1 {
        font-size: 1.4rem;
    }

    .t5-contact-head p {
        font-size: 0.88rem;
    }

    .t5-contact-tile {
        min-height: 72px;
        padding: 0.95rem 0.95rem;
        gap: 0.75rem;
        border-radius: 12px;
    }

    .t5-contact-icon {
        width: 42px;
        height: 42px;
        font-size: 0.98rem;
    }

    .t5-contact-label {
        font-size: 0.75rem;
    }

    .t5-contact-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .topbar {
        font-size: 0.58rem;
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
    }

    .topbar .container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 2px 4px;
        overflow: hidden;
        padding-left: 6px;
        padding-right: 6px;
    }

    .topbar-left,
    .topbar-right {
        width: auto !important;
        flex-wrap: nowrap !important;
        gap: 1px 4px;
    }

    .topbar-right {
        margin-left: 2px;
    }

    .topbar-left a.pe-3 {
        padding-right: 0.25rem !important;
        display: inline-flex;
        align-items: center;
        gap: 0.15rem;
        white-space: nowrap;
    }

    .topbar .follow-label {
        font-size: inherit;
        margin-right: 0.15rem !important;
    }

    .topbar .social-circle {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
        margin-left: 2px;
    }

    .topbar .adminedit {
        padding: 0.05rem 0.2rem;
        font-size: 0.5rem;
    }

    .brand-bar > .container {
        min-height: auto;
    }

    .brand-logo {
        width: 100%;
        max-width: 100%;
    }

    .brand-logo .logo,
    .logo {
        width: auto;
        max-width: 100%;
        height: 58px;
        max-height: 58px;
    }

    .t5-footer .footer-brand-logo img {
        max-width: 120px;
        max-height: 40px;
    }

    .login-hero-text .brand-title {
        font-size: 1.12rem;
        font-family: Georgia, 'Times New Roman', serif;
    }

    .login-hero-text .brand-subtitle {
        font-size: 0.82rem;
    }

    .t5-features {
        padding: 0.7rem 0 0.8rem;
    }

    .t5-feature-item {
        padding: 0.45rem 0.3rem;
    }

    .t5-feature-icon {
        font-size: 1.15rem;
        min-height: 24px;
        margin-bottom: 0.25rem;
    }

    .t5-feature-icon img {
        max-height: 26px;
    }

    .t5-feature-title {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .t5-feature-subtitle {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .t5-feature-desc {
        font-size: 0.62rem;
        line-height: 1.3;
    }

    .t5-contact-page {
        padding: 1.15rem 0 1.6rem;
    }

    .t5-contact-card {
        padding: 1.15rem 0.85rem;
        border-radius: 12px;
    }

    .t5-contact-head h1 {
        font-size: 1.25rem;
    }

    .t5-contact-head p {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .t5-contact-tile {
        min-height: 68px;
        padding: 0.85rem 0.8rem;
        gap: 0.7rem;
    }

    .t5-contact-icon {
        width: 40px;
        height: 40px;
        font-size: 0.92rem;
    }

    .t5-contact-value {
        font-size: 0.9rem;
    }

    .t5-contact-admin .btn {
        width: 100%;
        max-width: 260px;
    }

    .footer-logo-placeholder {
        min-width: 100px;
        font-size: 0.72rem;
        padding: 0.35rem 0.65rem;
    }

    .t5-footer .footer-links a {
        display: inline-block;
        padding: 0.15rem 2px;
    }
}

/* Helpdesk phone icon */
.topbar .fa-phone,
.t5-contact-icon .fa-phone {
    display: inline-block;
    transform: scaleX(-1);
}

/* Admin / theme edit modals */
.modal .modal-dialog {
    margin-top: 1.75rem;
}

.modal .modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.modal .modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--t5-navy);
    color: #fff;
    border-bottom: 0;
    padding: 1rem 1.25rem;
}

.modal .modal-header .modal-title {
    order: 1;
    margin: 0 auto 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.modal .modal-header .btn-close {
    order: 2;
    margin: 0;
    padding: 0.5rem;
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
}

.modal .modal-header .btn-close:hover {
    opacity: 1;
}

.modal .modal-body {
    padding: 1.25rem;
    background: #fff;
}

.modal .modal-body .form-group {
    margin-bottom: 1rem;
}

.modal .modal-body label,
.modal .modal-body .form-check-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.modal .modal-body .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
}

.modal .modal-body .form-control:focus {
    border-color: var(--t5-navy);
    box-shadow: 0 0 0 0.2rem rgba(0, 45, 98, 0.12);
}

.modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
    padding: 0.9rem 1.25rem;
}

.modal .modal-footer .btn {
    border-radius: 8px;
    font-weight: 500;
    min-width: 88px;
    padding: 0.45rem 1rem;
}

.modal .modal-footer .btn-primary {
    background: var(--t5-navy);
    border-color: var(--t5-navy);
}

.modal .modal-footer .btn-primary:hover {
    background: var(--t5-navy-dark);
    border-color: var(--t5-navy-dark);
}

.modal .modal-footer .btn-danger {
    background: #fff;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.modal .modal-footer .btn-danger:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #94a3b8;
}

.modal-backdrop.show {
    opacity: 0.5;
}
