/* =========================================================
   SMP IBRAHIMY 1
   LOGIN PREMIUM 2026
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


html,
body {

    width: 100%;
    min-height: 100%;

}


body {

    background: #EAF2FF;

    color: #1E293B;

    overflow-x: hidden;
    overflow-y: auto;

}


/* =========================================================
   APP
========================================================= */

.login-app {

    position: relative;

    width: 100%;
    max-width: 480px;

    min-height: 100vh;

    height: auto;

    margin: auto;

    overflow: hidden;

    padding-bottom: 10px;

}


/* =========================================================
   BACKGROUND CIRCLE
========================================================= */

.bg-circle {

    position: absolute;

    border-radius: 50%;

    filter: blur(4px);

    opacity: .35;

    pointer-events: none;

}


.circle1 {

    width: 230px;
    height: 230px;

    background: #4299F5;

    top: -80px;
    left: -100px;

}


.circle2 {

    width: 200px;
    height: 200px;

    background: #8EC5FF;

    right: -80px;
    top: 120px;

}


.circle3 {

    width: 160px;
    height: 160px;

    background: #B6D9FF;

    bottom: 120px;
    left: 35%;

}


/* =========================================================
   HEADER
========================================================= */

.login-header {

    background:
        linear-gradient(
            135deg,
            #4299F5,
            #55A9FA
        );

    padding: 30px 20px 58px;

    text-align: center;

    color: white;

    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;

    position: relative;

    z-index: 2;

}


/* =========================================================
   LOGO
========================================================= */

.logo-box {

    width: 82px;
    height: 82px;

    margin: auto;

    background: white;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .18);

    animation: float 3s infinite ease-in-out;

}


.logo-box img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


@keyframes float {

    50% {

        transform: translateY(-8px);

    }

}


.login-header h1 {

    margin-top: 18px;

    font-size: 27px;

    font-weight: 700;

    letter-spacing: -.4px;

}


.login-header p {

    margin-top: 6px;

    font-size: 13px;

    opacity: .9;

}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {

    background: white;

    margin: -45px 18px 0;

    padding: 22px 24px;

    border-radius: 30px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .10);

    position: relative;

    z-index: 5;

    animation: loginUp .6s ease;

}


@keyframes loginUp {

    from {

        opacity: 0;

        transform: translateY(40px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =========================================================
   HEADING
========================================================= */

.welcome {

    display: block;

    text-align: center;

    color: #64748B;

    font-size: 13px;

}


.login-card h2 {

    text-align: center;

    margin-top: 7px;

    font-size: 24px;

    color: #111827;

    font-weight: 700;

}


.login-card > p {

    text-align: center;

    margin-top: 7px;

    margin-bottom: 23px;

    font-size: 13px;

    color: #64748B;

}


/* =========================================================
   ERROR
========================================================= */

.login-error {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

    padding: 12px 14px;

    border-radius: 14px;

    background: #FEF2F2;

    border: 1px solid #FECACA;

    color: #DC2626;

    font-size: 13px;

}


.login-error i {

    font-size: 17px;

}


/* =========================================================
   INPUT
========================================================= */

.input-box {

    height: 57px;

    margin-top: 14px;

    background: #F8FAFC;

    border: 2px solid #E2E8F0;

    border-radius: 18px;

    display: flex;

    align-items: center;

    padding: 0 17px;

    transition: .25s;

}


.input-box:focus-within {

    border-color: #4299F5;

    background: white;

    box-shadow:
        0 0 0 4px rgba(66, 153, 245, .10);

}


.input-box > i {

    width: 22px;

    font-size: 18px;

    color: #64748B;

    margin-right: 13px;

}


.input-box input {

    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #1E293B;

    font-size: 15px;

}


.input-box input::placeholder {

    color: #94A3B8;

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    width: 35px;
    height: 35px;

    flex-shrink: 0;

    border: none;

    background: transparent;

    color: #64748B;

    cursor: pointer;

    border-radius: 10px;

    transition: .2s;

}


.password-toggle:hover {

    color: #4299F5;

    background: #EAF2FF;

}


/* =========================================================
   BUTTON
========================================================= */

.btn-next {

    margin-top: 20px;

    width: 100%;

    height: 56px;

    border: none;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #4299F5,
            #55A9FA
        );

    color: white;

    font-size: 15px;

    font-weight: 600;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(66, 153, 245, .22);

    transition: .25s;

}


.btn-next:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 28px rgba(66, 153, 245, .28);

}


.btn-next:active {

    transform: scale(.97);

}


.btn-next i {

    transition: .25s;

}


.btn-next:hover i {

    transform: translateX(4px);

}


/* =========================================================
   HELP
========================================================= */

.login-help {

    margin-top: 17px;

    text-align: center;

}


.login-help span {

    display: block;

    font-size: 12px;

    color: #94A3B8;

    margin-bottom: 7px;

}


.login-help a {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #4299F5;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .25s;

}


.login-help a:hover {

    color: #1683EE;

}


/* =========================================================
   FOOTER
   MOBILE — SELALU DI BAWAH CARD
========================================================= */

.login-footer {

    position: relative;

    width: 100%;

    left: auto;
    right: auto;
    bottom: auto;

    margin-top: 18px;

    padding: 0 15px 18px;

    text-align: center;

    color: #64748B;

    font-size: 12px;

    z-index: 10;

}


.login-footer strong {

    display: block;

    color: #1E293B;

    font-size: 13px;

    font-weight: 600;

}


.login-footer span {

    display: block;

    margin: 3px 0;

    color: #64748B;

}


.login-footer small {

    font-size: 10px;

    color: #94A3B8;

}


/* =========================================================
   DESKTOP MODE
========================================================= */

@media (min-width: 992px) {

    body {

        background:
            linear-gradient(
                135deg,
                #EAF2FF,
                #DCEBFF
            );

        display: flex;

        justify-content: center;

        align-items: center;

        min-height: 100vh;

        overflow: auto;

    }


    .login-app {

        max-width: 1100px;

        width: 100%;

        height: 700px;

        min-height: 700px;

        border-radius: 30px;

        overflow: hidden;

        display: grid;

        grid-template-columns: 1fr 1fr;

        box-shadow:
            0 25px 60px rgba(0, 0, 0, .15);

        padding-bottom: 0;

    }


    /* =====================================================
       LEFT BRAND
    ===================================================== */

    .login-header {

        height: 100%;

        display: flex;

        flex-direction: column;

        justify-content: center;

        border-radius: 0;

        padding: 60px;

    }


    .logo-box {

        width: 100px;
        height: 100px;

    }


    .login-header h1 {

        font-size: 32px;

        margin-top: 24px;

    }


    .login-header p {

        font-size: 15px;

    }


    /* =====================================================
       RIGHT LOGIN
    ===================================================== */

    .login-card {

        margin: 0;

        border-radius: 0;

        display: flex;

        flex-direction: column;

        justify-content: center;

        box-shadow: none;

        padding: 60px;

    }


    /* =====================================================
       DESKTOP FOOTER
    ===================================================== */

    .login-footer {

        position: absolute;

        width: auto;

        left: auto;
        right: 45px;

        bottom: 25px;

        margin: 0;

        padding: 0;

        text-align: right;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .login-header {

        padding: 22px 20px 52px;

    }


    .logo-box {

        width: 70px;
        height: 70px;

    }


    .login-header h1 {

        font-size: 24px;

    }


    .login-card {

        margin-left: 14px;
        margin-right: 14px;

        padding: 20px 18px;

        border-radius: 26px;

    }


    .login-card h2 {

        font-size: 22px;

    }


    .login-footer {

        margin-top: 16px;

        padding-bottom: 15px;

    }

}


/* =========================================================
   ICON ABSENSI
========================================================= */

.logo-box {

    width: 100px;
    height: 100px;

    margin: auto;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.22),
            rgba(255,255,255,.08)
        );

    border: 1px solid rgba(255,255,255,.35);

    display: flex;

    justify-content: center;

    align-items: center;

    color: white;

    box-shadow:
        0 18px 40px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.25);

    animation: float 3s infinite ease-in-out;

}


/* ICON SIDIK JARI */

.attendance-icon i {

    font-size: 58px;

    color: white;

    filter:
        drop-shadow(0 5px 10px rgba(0,0,0,.18));

}


/* ANIMASI */

@keyframes float {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-7px);

    }

}