/* =====================================================
   SCHOOL ERP ANIMATED GATEWAY
===================================================== */

body {
    margin: 0;
    font-family: "Inter", sans-serif;
}


/* MAIN SCREEN */

.erp-gateway {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 20%,
            #172554 0,
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 80%,
            #312e81 0,
            transparent 30%
        ),
        #090f1d;

    color: #ffffff;
}


/* =====================================================
   ANIMATED GRID
===================================================== */

.gateway-grid {
    position: absolute;
    inset: 0;

    opacity: 0.35;

    background-image:
        linear-gradient(
            rgba(148, 163, 184, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.08) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1),
            transparent
        );

    animation: gridMove 20s linear infinite;
}


@keyframes gridMove {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(45px);
    }

}


/* =====================================================
   FLOATING ORBS
===================================================== */

.gateway-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}


.orb-one {
    width: 280px;
    height: 280px;

    top: -100px;
    left: 25%;

    background:
        rgba(37, 99, 235, 0.18);

    animation: floatOne 9s ease-in-out infinite;
}


.orb-two {
    width: 220px;
    height: 220px;

    bottom: -70px;
    left: 5%;

    background:
        rgba(99, 102, 241, 0.16);

    animation: floatTwo 11s ease-in-out infinite;
}


.orb-three {
    width: 300px;
    height: 300px;

    top: 30%;
    right: -150px;

    background:
        rgba(14, 165, 233, 0.12);

    animation: floatThree 12s ease-in-out infinite;
}


@keyframes floatOne {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, 50px);
    }

}


@keyframes floatTwo {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -40px);
    }

}


@keyframes floatThree {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-40px, 40px);
    }

}


/* =====================================================
   MAIN CONTAINER
===================================================== */

.gateway-container {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 1250px;
    min-height: 100vh;

    margin: auto;
    padding: 45px 30px;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;

    align-items: center;
}


/* =====================================================
   LEFT SIDE
===================================================== */

.gateway-intro {
    animation: introReveal 0.8s ease forwards;
}


@keyframes introReveal {

    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* LOGO */

.gateway-logo {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 75px;
}


.gateway-logo-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    font-size: 24px;

    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.3);
}


.gateway-logo h1 {
    margin: 0;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.7px;
}


.gateway-logo span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.6px;
}


/* STATUS */

.gateway-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;

    color: #93c5fd;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.5px;
}


.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.1);

    animation: pulseDot 2s infinite;
}


@keyframes pulseDot {

    0% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow:
            0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, 0);
    }

}


/* MAIN TEXT */

.gateway-text h2 {
    margin: 0;

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.02;

    font-weight: 800;

    letter-spacing: -3px;
}


.gateway-text h2 span {

    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #818cf8
        );

    -webkit-background-clip: text;

    color: transparent;
}


.gateway-text p {
    max-width: 430px;

    margin-top: 25px;

    color: #94a3b8;

    font-size: 16px;

    line-height: 1.8;
}


/* INFO */

.gateway-info {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 55px;
}


.gateway-info-item {
    display: flex;
    align-items: center;

    gap: 13px;
}


.gateway-info-item > i {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    color: #60a5fa;
}


.gateway-info-item strong {
    display: block;

    font-size: 13px;
}


.gateway-info-item span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 11px;
}


/* =====================================================
   RIGHT LOGIN PANEL
===================================================== */

.gateway-login {
    animation: panelReveal 0.9s ease forwards;
}


@keyframes panelReveal {

    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


.login-panel {
    position: relative;

    padding: 38px;

    border-radius: 28px;

    background:
        rgba(15, 23, 42, 0.72);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3);
}


/* PANEL HEADER */

.login-panel-header {
    margin-bottom: 28px;
}


.login-step {
    display: inline-block;

    margin-bottom: 10px;

    color: #60a5fa;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}


.login-panel-header h3 {
    margin: 0;

    font-size: 28px;
    font-weight: 750;

    letter-spacing: -1px;
}


.login-panel-header p {
    margin: 8px 0 0;

    color: #94a3b8;

    font-size: 13px;
}


/* =====================================================
   ROLE LIST
===================================================== */

.role-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* ROLE CARD */

.role-access {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 78px;

    gap: 14px;

    padding: 12px 16px;

    overflow: hidden;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    text-decoration: none;

    color: #ffffff;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;

    animation:
        roleReveal 0.5s ease forwards;
}


.role-access:nth-child(1) {
    animation-delay: 0.1s;
}

.role-access:nth-child(2) {
    animation-delay: 0.2s;
}

.role-access:nth-child(3) {
    animation-delay: 0.3s;
}

.role-access:nth-child(4) {
    animation-delay: 0.4s;
}

.role-access:nth-child(5) {
    animation-delay: 0.5s;
}


@keyframes roleReveal {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.role-access:hover {
    transform:
        translateX(7px);

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(96, 165, 250, 0.5);
}


/* ICON */

.role-icon {
    width: 48px;
    height: 48px;

    min-width: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        rgba(96, 165, 250, 0.1);

    color: #60a5fa;

    font-size: 21px;
}


/* ROLE CONTENT */

.role-content {
    flex: 1;
}


.role-content h4 {
    margin: 0 0 3px;

    font-size: 14px;
    font-weight: 700;
}


.role-content span {
    color: #94a3b8;

    font-size: 11px;
}


/* NUMBER */

.role-number {
    color: rgba(255, 255, 255, 0.15);

    font-size: 11px;
    font-weight: 700;
}


/* ARROW */

.role-arrow {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #94a3b8;

    background:
        rgba(255, 255, 255, 0.05);

    transition:
        0.25s ease;
}


.role-access:hover .role-arrow {

    background: #2563eb;

    color: #ffffff;

    transform:
        rotate(45deg);
}


/* ROLE SPECIFIC ICONS */

.teacher-access .role-icon {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}


.student-access .role-icon {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
}


.parent-access .role-icon {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
}


.accountant-access .role-icon {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}


/* =====================================================
   PANEL FOOTER
===================================================== */

.login-panel-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 25px;
    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);

    color: #64748b;

    font-size: 10px;
}


.login-panel-footer i {
    color: #22c55e;

    margin-right: 5px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .gateway-container {

        grid-template-columns: 1fr;

        max-width: 650px;

        gap: 40px;
    }


    .gateway-logo {
        margin-bottom: 35px;
    }


    .gateway-text h2 {
        font-size: 48px;
    }


    .gateway-info {
        display: none;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

    .gateway-container {
        padding: 25px 18px;
    }


    .gateway-logo {
        margin-bottom: 35px;
    }


    .gateway-text h2 {
        font-size: 42px;

        letter-spacing: -2px;
    }


    .gateway-text p {
        font-size: 14px;
    }


    .login-panel {
        padding: 24px 16px;

        border-radius: 22px;
    }


    .login-panel-header h3 {
        font-size: 24px;
    }


    .role-access {
        min-height: 72px;

        padding: 10px;
    }


    .role-icon {
        width: 43px;
        height: 43px;

        min-width: 43px;
    }


    .role-content h4 {
        font-size: 13px;
    }


    .role-content span {
        font-size: 10px;
    }


    .role-number {
        display: none;
    }


    .login-panel-footer {
        flex-direction: column;

        gap: 8px;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}
/* =====================================================
   SCHOOL REGISTRATION CTA
===================================================== */

.school-registration-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;
    padding: 18px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.14),
            rgba(79, 70, 229, 0.08)
        );

    border:
        1px solid rgba(96, 165, 250, 0.18);

    animation:
        registrationReveal 0.8s ease forwards;
}


@keyframes registrationReveal {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.school-registration-content {
    display: flex;
    align-items: center;

    gap: 13px;
}


.school-registration-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        rgba(37, 99, 235, 0.18);

    color: #60a5fa;

    font-size: 20px;
}


.school-registration-content span {
    display: block;

    margin-bottom: 4px;

    color: #60a5fa;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.school-registration-content h4 {
    margin: 0 0 4px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}


.school-registration-content p {
    margin: 0;

    color: #94a3b8;

    font-size: 10px;
}


.school-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 42px;

    padding: 0 15px;

    border-radius: 11px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    transition: 0.25s ease;
}


.school-register-btn:hover {
    background: #3b82f6;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 20px rgba(37, 99, 235, 0.25);
}


.school-register-btn i {
    transition: transform 0.25s ease;
}


.school-register-btn:hover i {
    transform: translateX(4px);
}


/* MOBILE */

@media (max-width: 576px) {

    .school-registration-cta {
        align-items: flex-start;

        flex-direction: column;
    }


    .school-register-btn {
        width: 100%;
    }

}