body{
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    background: linear-gradient(160deg, #0f172a 0%, #1e2a4a 45%, #1e1b4b 100%) !important;
    font-family: "Roboto" , sans-serif !important;
    position: relative;
}

body::before, body::after{
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

body::before{
    width: 32rem;
    height: 32rem;
    background: rgba(99, 102, 241, .35);
    top: -10rem;
    left: -8rem;
    animation: portal-blob-drift-a 20s ease-in-out infinite;
}

body::after{
    width: 36rem;
    height: 36rem;
    background: rgba(236, 72, 153, .16);
    bottom: -12rem;
    right: -10rem;
    animation: portal-blob-drift-b 26s ease-in-out infinite;
}

@keyframes portal-blob-drift-a{
    0%, 100%{ transform: translate(0, 0) scale(1); }
    33%{ transform: translate(8vw, 6vh) scale(1.15); }
    66%{ transform: translate(3vw, 10vh) scale(0.9); }
}

@keyframes portal-blob-drift-b{
    0%, 100%{ transform: translate(0, 0) scale(1); }
    40%{ transform: translate(-7vw, -8vh) scale(1.1); }
    75%{ transform: translate(-3vw, 4vh) scale(0.92); }
}

@media (prefers-reduced-motion: reduce){
    body::before, body::after{
        animation: none;
    }
}

/* rising bubbles */
.bubbles{
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubbles span{
    position: absolute;
    bottom: -12vh;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.6), rgba(255,255,255,.06) 62%, rgba(255,255,255,0) 76%);
    box-shadow: inset 0 0 8px rgba(255,255,255,.25), 0 0 6px rgba(255,255,255,.08);
    animation-name: portal-bubble-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes portal-bubble-rise{
    0%{ transform: translate(0, 0); opacity: 0; }
    8%{ opacity: .85; }
    88%{ opacity: .4; }
    100%{ transform: translate(var(--drift, 24px), -118vh); opacity: 0; }
}

.bubbles span:nth-child(1){ left: 4%;  width: 16px; height: 16px; animation-duration: 15s; animation-delay: 0s;  --drift: 30px; }
.bubbles span:nth-child(2){ left: 14%; width: 30px; height: 30px; animation-duration: 21s; animation-delay: 2s;  --drift: -40px; }
.bubbles span:nth-child(3){ left: 27%; width: 11px; height: 11px; animation-duration: 12s; animation-delay: 5s;  --drift: 20px; }
.bubbles span:nth-child(4){ left: 39%; width: 22px; height: 22px; animation-duration: 18s; animation-delay: 1s;  --drift: -25px; }
.bubbles span:nth-child(5){ left: 51%; width: 14px; height: 14px; animation-duration: 14s; animation-delay: 7s;  --drift: 15px; }
.bubbles span:nth-child(6){ left: 62%; width: 26px; height: 26px; animation-duration: 23s; animation-delay: 3s;  --drift: -35px; }
.bubbles span:nth-child(7){ left: 73%; width: 16px; height: 16px; animation-duration: 16s; animation-delay: 9s;  --drift: 25px; }
.bubbles span:nth-child(8){ left: 84%; width: 34px; height: 34px; animation-duration: 25s; animation-delay: 4s;  --drift: -20px; }
.bubbles span:nth-child(9){ left: 92%; width: 19px; height: 19px; animation-duration: 17s; animation-delay: 8s;  --drift: 30px; }
.bubbles span:nth-child(10){ left: 97%; width: 10px; height: 10px; animation-duration: 13s; animation-delay: 6s; --drift: -15px; }

@media (prefers-reduced-motion: reduce){
    .bubbles{
        display: none;
    }
}

a{
    text-decoration: none !important;
}

/*Style for the Logo*/
.portal-logo{
    z-index: 10;
    position: absolute;
    width: 48px;
    height: 48px;
    margin: 24px !important;
    opacity: 0.9;
    padding: 0px !important;
    border-radius: 12px;
    transition: opacity .3s ease, transform .3s ease;
}

.portal-logo:hover{
    opacity: 1 !important;
    transform: scale(1.05);
    transition: opacity .3s ease, transform .3s ease;
}

/*Style for Login Portal*/
.portal-wrapper{
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 1.5rem 3rem;
    box-sizing: border-box;
}

.portal-wrapper .row{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.75rem;
    width: 100%;
    max-width: 1180px;
    margin: 0;
}

.portal-col{
    flex: 1 1 230px;
    max-width: 260px;
    height: auto;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 28px;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 45px rgba(0,0,0,.28);
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1);
}

.portal-col:hover{
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(0,0,0,.4);
}

.portal-admin, .portal-faculty, .portal-student{
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1);
}

.portal-avatar-wrapper{
    z-index: 5 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.portal-avatar{
    width: 120px;
    height: 120px;
    overflow: hidden !important;
    border: 4px solid rgba(255,255,255,.55);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    transition: transform .35s ease, border-color .35s ease;
}

.portal-col:hover .portal-avatar{
    transform: scale(1.06);
    border-color: rgba(255,255,255,.9);
}

.portal-avatar-img{
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.portal-avatar-img-bg{
    background-color: rgba(255,255,255,0.18);
    padding: 0 !important;
    margin: 0px auto !important;
    transition: background-color .35s ease;
}

.portal-avatar-img-bg:hover{
    background-color: rgba(255,255,255,0.3);
}

/*style for login button */
.font-white{
    color: #fff !important;
    text-shadow: none;
    font-weight: 700;
}

.portal-avatar-wrapper h1{
    font-size: 19px !important;
    letter-spacing: .06em;
    margin-top: 1.1rem !important;
    margin-bottom: 0;
}

.titleBar2 {
    border-bottom: 3px solid #FFD600 !important;
    width: 36px;
    margin: 10px auto 0;
    border-radius: 2px;
}

.portal-big-btn-wrapper{
    display: block;
    margin-top: 1.5rem;
    width: 100%;
}

.portal-big-btn{
    text-decoration: none !important;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    background-color: rgba(255,255,255,.14);
    border-radius: 999px;
    color: #FFF;
    text-transform: uppercase;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 12px 0;
    width: 100%;
    height: auto;
    position: static;
    margin: 0;
    display: block;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: background-color .3s ease, opacity .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
}

.portal-col:hover .portal-big-btn,
.portal-col:focus-within .portal-big-btn{
    opacity: 1;
    transform: translateY(-2px);
    pointer-events: auto;
    box-shadow: 0 12px 26px rgba(0,0,0,.28);
}

.portal-big-btn:hover{
    background-color: rgba(255,255,255,.28);
}
/*end of style for login button */

/*decorative blurred circles from the legacy design are retired in favor of the ambient body glow above*/
.circle-bg-blur{
    display: none;
}

@media only screen and (max-width: 991px) {
    .portal-avatar{
        width: 108px;
        height: 108px;
    }
    .portal-avatar-img{
        width: 108px;
        height: 108px;
    }
    .portal-avatar-wrapper h1{
        font-size: 17px !important;
    }
}

@media (hover: none) {
    .portal-big-btn{
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media only screen and (max-width:769px) {
    .portal-wrapper{
        padding: 5.5rem 1rem 2.5rem;
    }
    .portal-col{
        flex: 1 1 45%;
        max-width: 47%;
        min-height: 280px;
        padding: 2rem 1.25rem 1.75rem;
    }
    .portal-avatar{
        width: 90px;
        height: 90px;
    }
    .portal-avatar-img{
        width: 90px;
        height: 90px;
    }
    .portal-avatar-wrapper h1{
        font-size: 15px !important;
    }
    .portal-logo{
        width: 38px;
        height: 38px;
        margin: 16px !important;
    }
}

@media only screen and (max-width: 450px) {
    .portal-col{
        flex: 1 1 100%;
        max-width: 340px;
    }
    .portal-avatar-wrapper h1{
        font-size: 18px !important;
    }
}
