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

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

    :root {
        --icu-gold: #C8A451;
        --icu-navy: #024173;
    }

    body {
        max-width:100%;
        font-family: 'Inter', sans-serif;
        background: #f5f5f5;
        min-height: 100vh;
    }

    .public-layout{
     height: 100dvh;
    }

    .login-container {
        max-width: 100%;
        display: flex;
        min-height: 100vh;
        align-items: stretch;
    }

    /* Left Side - Admin Branding */
    .branding-section {
        flex: 1;
        min-height: 100vh;
        background: linear-gradient(135deg, var(--icu-navy) 0%, #035a9e 100%);
        padding: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        color: white;
    }

    .branding-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(200, 164, 81, 0.1) 0%, transparent 70%);
        animation: pulse 8s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); opacity: 0.5; }
        50% { transform: scale(1.2); opacity: 0.8; }
    }

    .branding-content {
        position: relative;
        z-index: 2;
        max-width: 500px;
        text-align: center;
    }

    .logo-section {
        margin-bottom: 40px;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
        background: var(--icu-gold);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        box-shadow: 0 10px 30px rgba(200, 164, 81, 0.3);
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }

    .logo-circle svg {
        width: 50px;
        height: 50px;
        fill: var(--icu-navy);
    }

    .branding-content h1 {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .branding-content .subtitle {
        font-size: 16px;
        color: var(--icu-gold);
        font-weight: 600;
        margin-bottom: 30px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .mission-statement {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 40px;
        opacity: 0.9;
        font-style: italic;
    }

    .admin-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    .feature-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-5px);
    }

    .feature-card svg {
        width: 32px;
        height: 32px;
        fill: var(--icu-gold);
        margin-bottom: 10px;
    }

    .feature-card h3 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .feature-card p {
        font-size: 12px;
        opacity: 0.8;
    }

    /* Right Side - Login Form */
    .form-section {
        flex: 1;
        padding: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: white;
        min-height: 100vh;
    }

    .form-container {
        width: 100%;
        max-width: 600px;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.247);
        border-radius: 10px;
        padding: 50px;
    }

    .form-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .admin-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--icu-navy);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .admin-badge svg {
        width: 16px;
        height: 16px;
        fill: var(--icu-gold);
    }

    .form-header h2 {
        font-size: 32px;
        font-weight: 800;
        color: var(--icu-navy);
        margin-bottom: 10px;
    }

    .form-header p {
        color: #666;
        font-size: 15px;
    }

    .Application_ID_Indicator {
        display: none;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
        background: #035a9e;
        color: #fff;
        padding: 15px;
        border-radius: 10px;
    }

    .Application_ID_Indicator svg {
        width: 20px;
        height: 20px;
        fill: #b89440;
    }

    .Application_ID_Indicator p {
        font-size: 14px;
    }

    .login-form {
        margin-top: 30px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--icu-navy);
        font-weight: 600;
        font-size: 14px;
    }

    .input-wrapper {
        position: relative;
    }

    .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        fill: #b89440;
        pointer-events: none;
    }

    .form-control {
        width: 100%;
        padding: 14px 48px 14px 48px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 15px;
        font-family: 'Inter', sans-serif;
        transition: all 0.3s ease;
        background: #fafafa;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--icu-gold);
        background: white;
        box-shadow: 0 0 0 4px rgba(200, 164, 81, 0.1);
    }

    .password-toggle {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2; /* ensure clickable above input */
    }

    .password-toggle svg {
        width: 20px;
        height: 20px;
        fill: #b89440b6;
        transition: fill 0.3s ease;
    }

    .password-toggle:hover svg {
        fill: #b89440;
    }

    .btn-login {
        width: 100%;
        padding: 16px;
        background: var(--icu-gold);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: capitalize;
        letter-spacing: 1px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .btn-login .spinner {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        border: 2px solid rgba(255, 255, 255, 0.35);
        border-top-color: #ffffff;
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
    }

    .btn-login .btn-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .btn-login.is-loading {
        cursor: wait;
    }

    .btn-login.is-loading .spinner {
        opacity: 1;
        animation: spinner-rotate 0.75s linear infinite;
    }

    .btn-login:hover {
        background: #b89440;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(200, 164, 81, 0.3);
    }

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

    .btn-login:disabled {
        opacity: 0.8;
        pointer-events: none;
    }

    @keyframes spinner-rotate {
        to {
            transform: rotate(360deg);
        }
    }

    .divider {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 30px 0;
        color: #999;
        font-size: 14px;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e0e0e0;
    }

    .divider span {
        padding: 0 15px;
    }

    .support-link {
        text-align: center;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #e0e0e0;
    }

    .support-link p {
        color: #666;
        font-size: 14px;
    }

    .support-link a {
        color: var(--icu-navy);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .support-link a:hover {
        color: var(--icu-gold);
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .login-container {
            flex-direction: column;
        }

        .branding-section {
            display: none;
        }

        .admin-features {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .form-section {
            padding: 40px 30px;
        }

        .branding-content h1 {
            font-size: 28px;
        }

        .mission-statement {
            font-size: 16px;
        }
    }

    @media (max-width: 576px) {
        .branding-section {
            padding: 30px 20px;
        }

        .form-section {
            padding: 30px 20px;
        }

        .admin-features {
            grid-template-columns: 1fr;
        }

        .form-header h2 {
            font-size: 26px;
        }
    }

/* ==========================
   Undergraduate Portal Mobile Header
   Based on ICU main site header design
========================== */

.ug-mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFF;
    border-bottom: 2px solid #024173;
    display: none; /* Hidden by default on larger screens */
}

.ug-header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.ug-logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.ug-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.ug-brand-name {
    margin-left: 8px;
    font-weight: 700;
    color: #024173;
    font-size: 10px;
    line-height: 1.1;
    white-space: normal;
    max-height: 40px;
    display: inline-block;
    overflow: hidden;
    max-width: clamp(100px, 20vw, 200px);
    overflow-wrap: anywhere;
}

.ug-portal-title {
    font-weight: 700;
    color: #024173;
    font-size: 14px;
    text-align: right;
    line-height: 1.2;
}

/* Show mobile header on smaller screens */
@media (max-width: 1200px) {
    .ug-mobile-header {
        display: block;
    }
    
}

@media (max-width: 480px) {
    .ug-header-container {
        height: 50px;
        padding: 0 12px;
    }
    
    .ug-logo-img {
        height: 32px;
    }
    
    .ug-brand-name {
        font-size: 9px;
        margin-left: 6px;
        max-width: clamp(80px, 18vw, 160px);
    }
    
    .ug-portal-title {
        font-size: 12px;
    }
    
}