﻿/* ===== Base page ===== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(to bottom right,#edf2ff,#ffffff);
    font-family: 'Segoe UI',sans-serif;
}

.landing-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Intro Icon */
.icon-circle {
    width: 80px;
    height: 80px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ===== Portal cards (original UI) ===== */
.portal-card {
    border: none;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .portal-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0,0,0,.08);
    }

/* Icons */
.portal-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.admin-icon {
    background: #e0ecff;
    color: #0d6efd;
}

.faculty-icon {
    background: #fff3cd;
    color: #f1aa15;
}

.student-icon {
    background: #00215E;
    color: #fff;
}

/* Buttons */
.btn-admin {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.btn-faculty {
    background: #f1aa15;
    color: #fff;
    font-weight: 600;
}
/* Student button – keep only this navy version */
.btn-student {
    background: #00215E !important;
    color: #fff !important;
    font-weight: 600;
    border: none;
    transition: background-color .3s ease;
}

    .btn-student:hover {
        background: #001845 !important;
        color: #fff !important;
    }

/* Footer */
footer {
    background: transparent;
    color: #052940;
    text-align: center;
    padding: 1.5rem 0;
    font-size: .9rem;
    border-top: none;
}

    footer i, footer svg {
        color: #052940 !important;
    }

/* ===== Carousel (layout/effects only) ===== */
.lc-wrapper {
    padding: 0 3.5rem;
    margin-top: .5rem;
}
/* spacing to match original */
.lc-track {
    position: relative;
    gap: 2rem;
}

.lc-card {
    width: min(92vw,520px);
    max-width: 520px;
    position: absolute;
    cursor: pointer;
    will-change: transform,opacity,filter,z-index;
    transition: transform .45s ease, opacity .45s ease, filter .45s ease, z-index .45s ease;
}

/* Center focus vs side fade — FLAT STYLE */
.lc-left {
    transform: translateX(-110%) scale(1); /* dati -36% scale(.88) */
    opacity: .35;
    filter: blur(1px);
    z-index: 1;
}

.lc-center {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: none;
    z-index: 3;
}

.lc-right {
    transform: translateX(110%) scale(1); /* dati 36% scale(.88) */
    opacity: .35;
    filter: blur(1px);
    z-index: 1;
}


.lc-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Arrows */
.lc-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.lc-prev {
    left: .25rem;
}

.lc-next {
    right: .25rem;
}

/* ===== Loader moved here ===== */
.loader-wrapper {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .6s ease;
}

    .loader-wrapper.fade-out {
        opacity: 0;
        pointer-events: none;
    }

.loader-logo {
    width: 400px;
    height: 400px;
    animation: popBounce 1.2s ease-out forwards;
}

@keyframes popBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== Responsive ===== */
@media (max-width:992px) {
    .lc-wrapper {
        max-width: 960px;
    }
}

@media (max-width:768px) {
    .lc-wrapper {
        padding: 0 2.5rem;
    }

    .lc-left {
        transform: translateX(-28%) scale(.9);
    }

    .lc-right {
        transform: translateX(28%) scale(.9);
    }
}

@media (max-width:480px) {
    .lc-wrapper {
        padding: 0 2rem;
    }

    .lc-left, .lc-right {
        display: none;
    }
}

/* A11y */
.lc-card:focus-visible,
.lc-arrow:focus-visible {
    outline: 3px solid rgba(32,107,196,.35);
    outline-offset: 2px;
}
