/* =====================================================
   SCHOOL ERP LOGIN PAGES
===================================================== */

.login-page {
    position: relative;
    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            #172554 0,
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 80%,
            #312e81 0,
            transparent 30%
        ),
        #090f1d;

    color: #ffffff;
}


/* =====================================================
   BACKGROUND GRID
===================================================== */

.login-grid {
    position: absolute;

    inset: 0;

    opacity: 0.25;

    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;

    animation: loginGridMove 20s linear infinite;
}


@keyframes loginGridMove {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(45px);
    }

}


/* =====================================================
   ANIMATED ORBS
===================================================== */

.login-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(25px);

    pointer-events: none;
}


.login-orb-one {
    width: 350px;
    height: 350px;

    top: -150px;
    right: 10%;

    background:
        rgba(37, 99, 235, 0.16);

    animation:
        loginFloatOne 10s ease-in-out infinite;
}


.login-orb-two {
    width: 300px;
    height: 300px;

    bottom: -150px;
    left: -100px;

    background:
        rgba(99, 102, 241, 0.14);

    animation:
        loginFloatTwo 12s ease-in-out infinite;
}


@keyframes loginFloatOne {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, 40px);
    }

}


@keyframes loginFloatTwo {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(60px, -40px);
    }

}


/* =====================================================
   MAIN CONTAINER
===================================================== */

.login-container {
    position: relative;

    z-index: 5;

    width: 100%;
    max-width: 1180px;

    min-height: 100vh;

    margin: auto;
    padding: 45px 30px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}


/* =====================================================
   LEFT BRAND SECTION
===================================================== */

.login-brand-section {
    animation:
        loginLeftReveal 0.8s ease forwards;
}


@keyframes loginLeftReveal {

    from {
        opacity: 0;

        transform:
            translateX(-40px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }

}


/* BRAND */

.login-brand {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 70px;

    text-decoration: none;

    color: #ffffff;
}


.login-brand-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);
}


.login-brand h1 {
    margin: 0;

    color: #ffffff;

    font-size: 24px;

    font-weight: 800;
}


.login-brand span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.6px;
}


/* ROLE CONTENT */

.login-role-icon {
    width: 68px;
    height: 68px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    border-radius: 20px;

    background:
        rgba(96, 165, 250, 0.1);

    border:
        1px solid
        rgba(96, 165, 250, 0.2);

    color: #60a5fa;

    font-size: 30px;
}


.login-role-label {
    display: inline-block;

    margin-bottom: 16px;

    color: #60a5fa;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


.login-brand-content h2 {
    max-width: 500px;

    margin: 0;

    font-size: 50px;

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -2px;
}


.login-brand-content h2 span {

    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #818cf8
        );

    background-clip: text;

    -webkit-background-clip: text;

    color: transparent;

    -webkit-text-fill-color: transparent;
}


.login-brand-content p {
    max-width: 430px;

    margin-top: 22px;

    color: #94a3b8;

    font-size: 15px;

    line-height: 1.8;
}


/* BACK LINK */

.login-back {
    margin-top: 50px;
}


.login-back a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #64748b;

    text-decoration: none;

    font-size: 13px;

    transition: 0.25s ease;
}


.login-back a:hover {
    color: #60a5fa;

    transform:
        translateX(-4px);
}


/* =====================================================
   RIGHT LOGIN FORM
===================================================== */

.login-form-section {
    animation:
        loginRightReveal 0.9s ease forwards;
}


@keyframes loginRightReveal {

    from {
        opacity: 0;

        transform:
            translateX(40px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }

}


.login-form-card {
    padding: 42px;

    border-radius: 28px;

    background:
        rgba(15, 23, 42, 0.78);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.35);
}


/* FORM HEADER */

.login-form-header {
    margin-bottom: 32px;
}


.login-form-header > span {
    display: inline-block;

    margin-bottom: 10px;

    color: #60a5fa;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.login-form-header h3 {
    margin: 0;

    font-size: 30px;

    font-weight: 750;

    letter-spacing: -1px;
}


.login-form-header p {
    margin: 8px 0 0;

    color: #94a3b8;

    font-size: 13px;
}


/* =====================================================
   FORM
===================================================== */

.login-form-group {
    margin-bottom: 22px;
}


.login-form-group label {
    display: block;

    margin-bottom: 9px;

    color: #cbd5e1;

    font-size: 12px;

    font-weight: 600;
}


.login-label-row {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.login-label-row a {
    color: #60a5fa;

    text-decoration: none;

    font-size: 11px;
}


.login-input {
    display: flex;

    align-items: center;

    gap: 12px;

    height: 54px;

    padding: 0 16px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    transition:
        0.25s ease;
}


.login-input:focus-within {

    border-color:
        rgba(96, 165, 250, 0.65);

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.08);
}


.login-input i {
    color: #64748b;

    font-size: 17px;
}


.login-input input {
    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;
}


.login-input input::placeholder {
    color: #475569;
}


/* =====================================================
   REMEMBER ME
===================================================== */

.remember-login {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 25px;

    color: #94a3b8;

    font-size: 12px;

    cursor: pointer;
}


.remember-login input {
    width: 15px;
    height: 15px;

    accent-color: #2563eb;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-submit {
    width: 100%;
    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.login-submit:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 30px
        rgba(37, 99, 235, 0.3);
}


.login-submit i {
    transition:
        transform 0.25s ease;
}


.login-submit:hover i {
    transform:
        translateX(4px);
}


/* SECURITY */

.login-security {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);

    color: #64748b;

    font-size: 11px;
}


.login-security i {
    color: #22c55e;
}


/* FOOTER */

.login-footer {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 18px;

    color: #64748b;

    font-size: 10px;
}


.login-footer-dot {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #475569;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .login-container {

        max-width: 600px;

        grid-template-columns: 1fr;

        gap: 40px;
    }


    .login-brand {
        margin-bottom: 35px;
    }


    .login-brand-content h2 {
        font-size: 44px;
    }


    .login-back {
        display: none;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

    .login-container {
        padding: 25px 16px;
    }


    .login-brand {
        margin-bottom: 35px;
    }


    .login-brand-icon {
        width: 46px;
        height: 46px;

        font-size: 21px;
    }


    .login-brand-content h2 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }


    .login-brand-content p {
        font-size: 14px;
    }


    .login-role-icon {
        width: 58px;
        height: 58px;

        font-size: 25px;
    }


    .login-form-card {
        padding: 28px 18px;

        border-radius: 22px;
    }


    .login-form-header h3 {
        font-size: 25px;
    }


    .login-footer {
        flex-wrap: wrap;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}