
/* ================================================
                   DESIGN TOKENS
                ================================================ */
:root {
    --primary: #2f4675;
    --primary-mid: #3f5ea3;
    --primary-dark: #22305a;
    --primary-light: #4c6aa8;
    --accent-gold: #c9a84c;
    --cta: #E97F4A;
    --bg: #f5f7fb;
    --text-dark: #1E2545;
    --text-mid: #445060;
    --text-muted: #7A8AA0;
    --border: #dcdcdc;
    --error: #dc3545;
    --ease: 0.28s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.25;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ================================================
                   ANIMATIONS
                ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatY {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ================================================
                   TOP INFO BAR
                ================================================ */
.top-info-bar {
    background: #1a1a2e;
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    padding: 7px 0;
}

    .top-info-bar a {
        color: rgba(255,255,255,0.75);
        transition: color var(--ease);
    }

        .top-info-bar a:hover {
            color: #fff;
        }

    .top-info-bar i {
        font-size: 0.7rem;
    }

/* ================================================
                   HEADER
                ================================================ */
.portal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f8f9fb;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
}

.header-logo-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(47,70,117,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 4px;
}

    .header-logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.header-univ-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1px;
    line-height: 1.2;
}

.header-univ-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.header-portal-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--cta);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 9px 20px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all var(--ease);
    white-space: nowrap;
}

    .btn-back-home:hover {
        background: var(--primary);
        color: #fff;
    }
/* ================================================
           HERO + Main
    ================================================ */
.page-bg {
    background: linear-gradient(rgba(20, 30, 60, 0.75), rgba(20, 30, 60, 0.85)), url('/assets/images/lnmu_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    background-attachment: fixed;
}

.hero-banner,
.login-section {
    background: transparent;
}
/* ================================================
           HERO BANNER
    ================================================ */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

    .hero-banner::before {
        content: '';
        position: absolute;
        inset: 0;
    }

.hero-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.2);
    border: 1px solid rgba(201,168,76,0.5);
    color: #f7e396;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-banner h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-banner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

/* ================================================
                   MAIN CONTENT AREA
                ================================================ */
.login-section {
    padding: 20px 0 70px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ================================================
                   LOGIN CARD — image left + form right
                ================================================ */
.login-outer-card {
    background: rgba(255, 255, 255, 0.95); /* glass feel */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    animation: fadeInUp 0.65s ease both;
}

/* LEFT image panel */
.card-image-panel {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

    .card-image-panel img.panel-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .card-image-panel .panel-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(47,70,117,0.25) 0%, rgba(15,27,61,0.70) 100%);
    }

.panel-badge {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,27,61,0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

    .panel-badge i {
        font-size: 1.1rem;
        color: var(--accent-gold);
    }

/* Fallback when image fails */
.card-image-fallback {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #2f4675, #4c6aa8);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-align: center;
    padding: 40px;
    gap: 16px;
}

    .card-image-fallback i {
        font-size: 4rem;
        color: rgba(255,255,255,0.3);
    }

/* RIGHT form panel */
.card-form-panel {
    flex: 1;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.form-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(47,70,117,0.07);
    border: 2px solid rgba(47,70,117,0.14);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 6px;
    margin: 0 auto 20px;
    animation: floatY 4s ease-in-out infinite;
}

    .form-logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    text-align: center;
}

/* Field labels */
.field-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .field-label i {
        font-size: 0.65rem;
        color: var(--primary-mid);
    }

/* Input wrapper */
.input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
    transition: color var(--ease);
}

.input-wrap:focus-within .input-icon {
    color: var(--primary-mid);
}

/* Target existing IDs — unchanged */
#username,
#upassword {
    width: 100% !important;
    height: 48px !important;
    padding: 0 44px 0 40px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.9rem !important;
    color: var(--text-dark) !important;
    background: #fafbfd !important;
    outline: none !important;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease) !important;
    display: block !important;
    box-sizing: border-box !important;
}

    #username:focus,
    #upassword:focus {
        border-color: var(--primary-mid) !important;
        box-shadow: 0 0 0 3px rgba(63,94,163,0.1) !important;
        background: #ffffff !important;
    }

    #username::placeholder, #upassword::placeholder {
        color: #aab4c4;
        font-size: 0.85rem;
    }

/* Password toggle */
.pw-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    z-index: 3;
    transition: color var(--ease);
}

    .pw-toggle:hover {
        color: var(--primary);
    }

/* Validation messages */
.field-error {
    font-size: 0.78rem;
    color: var(--error);
    font-weight: 600;
    margin-top: -12px;
    margin-bottom: 14px;
    display: none;
}

/* Remember me */
.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    font-size: 0.86rem;
    color: var(--text-mid);
    cursor: pointer;
}

    .remember-row input[type=checkbox] {
        width: 15px;
        height: 15px;
        accent-color: var(--primary-mid);
        cursor: pointer;
        flex-shrink: 0;
    }

/* LOGIN BUTTON — keeps existing class */
.login-form-btn.btn, button.login-form-btn {
    width: 100% !important;
    height: 48px !important;
    background: #2d3e70 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease) !important;
    box-shadow: 0 4px 18px rgba(45,62,112,0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    letter-spacing: 0.01em;
}

    .login-form-btn.btn:hover, button.login-form-btn:hover {
        background: #22305a !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 28px rgba(45,62,112,0.4) !important;
    }

    .login-form-btn.btn:active {
        transform: translateY(0) !important;
    }

/* Forgot password */
.forgot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.84rem;
    color: var(--primary-mid);
    font-weight: 500;
    transition: color var(--ease);
}

    .forgot-link:hover {
        color: var(--primary-dark);
    }

/* Help section */
.help-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.help-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
}

.help-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-mid);
}

    .help-item i {
        color: var(--cta);
    }

    .help-item a {
        color: var(--text-mid);
        transition: color var(--ease);
    }

        .help-item a:hover {
            color: var(--primary);
        }

/* pad-15 reset for original form structure */
.pad-15 {
    padding: 0 !important;
}

.login-form {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ================================================
                   AUTHORIZED NOTE BAR
                ================================================ */
.auth-note-bar {
    background: #f0f4ff;
    border-top: 1px solid #dce6ff;
    padding: 14px 0;
    font-size: 0.82rem;
    color: var(--text-mid);
}

    .auth-note-bar i {
        color: var(--primary-mid);
    }

    .auth-note-bar a {
        color: var(--primary-mid);
        font-weight: 600;
    }

        .auth-note-bar a:hover {
            text-decoration: underline !important;
        }

/* ================================================
                   FOOTER
                ================================================ */
.portal-footer-info {
    background: #f8f9fb;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0 28px;
}

.footer-col-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.84rem;
        color: var(--text-mid);
        transition: color var(--ease);
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

        .footer-links a i {
            font-size: 0.65rem;
            color: var(--cta);
        }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-mid);
    margin-bottom: 10px;
}

    .footer-contact-item i {
        color: var(--primary-mid);
        width: 16px;
    }

    .footer-contact-item a {
        color: var(--text-mid);
        transition: color var(--ease);
    }

        .footer-contact-item a:hover {
            color: var(--primary);
        }

/* Dark bottom bar */
.footer-bottom {
    background: #0f1b3d;
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-managed {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}

    .footer-managed strong {
        color: rgba(255,255,255,0.8);
    }

.footer-copy-right {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

/* ================================================
                   MODAL — kept for JS compatibility
                ================================================ */
.modal-content {
    border-radius: 12px;
}

/* ================================================
                   RESPONSIVE
                ================================================ */
@media (max-width: 768px) {
    .login-outer-card {
        flex-direction: column;
        border-radius: 12px;
    }

    .card-image-panel {
        flex: none;
        min-height: 220px;
        width: 100%;
    }

    .card-image-fallback {
        flex: none;
        min-height: 160px;
        width: 100%;
    }

    .card-form-panel {
        padding: 32px 24px;
    }

    .hero-banner {
        padding: 40px 0;
    }

        .hero-banner h1 {
            font-size: 1.8rem;
        }

    .help-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .card-form-panel {
        padding: 26px 18px;
    }

    .btn-back-home {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    .header-univ-name {
        font-size: 0.88rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #607B8F;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }


