/* ==================================================
   LOGIN.CSS - ABSENSI ADT
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI",sans-serif;
}

body{

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

    background:
    url("../images/background.jpeg")
    center center / cover no-repeat;

}

/* ===========================
   LOGIN CARD
=========================== */

.login-card{

    position:relative;
    z-index:2;

    width:460px;

    background:#fff;

    border-radius:24px;

    padding:38px;

    border:1px solid #E9EDF1;

    box-shadow:0 18px 45px rgba(0,0,0,.08);

}

/* ===========================
   LOGO
=========================== */

.logo-box{

    width:70px;
    height:70px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin-bottom:22px;

}

.logo-box img{

    width:70px;

}

/* ===========================
   TEXT
=========================== */

.login-card h1{

    font-size:38px;

    color:#17324A;

    margin-bottom:8px;

}

.subtitle{

    color:#667085;

    line-height:28px;

    font-size:18px;

    margin-bottom:28px;

}

/* ===========================
   ROLE
=========================== */

.role-wrapper{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:12px;

    margin-bottom:25px;

}

.role-wrapper input{

    display:none;

}

.role-wrapper label{

    height:54px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:14px;

    border:1px solid #D7E3EB;

    background:white;

    font-size:17px;

    cursor:pointer;

    transition:.3s;

    color:#637281;

    font-weight:600;

}

.role-wrapper input:checked + label{

    background:#EAF8FD;

    border:1px solid #1696B8;

    color:#0E4C7D;

}

/* ===========================
   INPUT
=========================== */

.input-group{

    margin-bottom:20px;

}

.input-group label{

    display:block;

    margin-bottom:8px;

    color:#5D6976;

    font-size:15px;

    font-weight:600;

}

.input-group input,
.input-group select{

    width:100%;

    height:54px;

    border-radius:12px;

    border:1px solid #D8E0E8;

    padding:0 18px;

    font-size:16px;

}

.input-group input:focus,
.input-group select:focus{

    outline:none;

    background:white;

    border-color:#1696B8;

    box-shadow:0 0 0 5px rgba(22,150,184,.10);

}

/* ===========================
   BUTTON
=========================== */

.login-btn{

    width:100%;

    height:55px;

    border:none;

    border-radius:12px;

    margin-top:10px;

    font-size:18px;

    font-weight:700;

    color:white;

    cursor:pointer;

    transition:.35s;

    background:linear-gradient(90deg,#1696B8,#0E4C7D);

}
.login-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 12px 25px rgba(13,77,128,.30);

}

/* ===========================
   DEMO
=========================== */

.demo-text{

    margin-top:18px;

    text-align:center;

    font-size:14px;

    color:#768391;

}
/* ===========================
   RESPONSIVE LOGIN
=========================== */

@media (max-width:768px){

    body{
    padding:20px;
    overflow-x:hidden;
    overflow-y:auto;
}

    .login-card{

        width:100%;
        max-width:380px;

        padding:28px 22px;

        border-radius:18px;
    }

    .logo-box{

        width:60px;
        height:60px;

        margin:0 auto 18px;
    }

    .logo-box img{
        width:60px;
    }

    .login-card h1{

        font-size:28px;
        text-align:center;
    }

    .subtitle{

        text-align:center;

        font-size:14px;

        line-height:22px;

        margin-bottom:22px;
    }

    .role-wrapper label{

        height:48px;

        font-size:15px;
    }

    .input-group label{

        font-size:14px;
    }

    .input-group input,
    .input-group select{

        height:48px;

        font-size:14px;
    }

    .login-btn{

        height:48px;

        font-size:16px;
    }

    .demo-text{

        font-size:12px;
    }

    .popup{

        width:90%;

        padding:28px 20px;
    }

    .popup h2{

        font-size:22px;
    }

    .popup p{

        font-size:14px;
    }

}

@media (max-width:400px){

    body{
        padding:15px;
    }

    .login-card{
        padding:22px 18px;
    }

    .login-card h1{
        font-size:24px;
    }

    .subtitle{
        font-size:13px;
    }

    .role-wrapper{
        gap:8px;
    }

    .role-wrapper label{
        font-size:14px;
    }
}
/* ==================================================
   POPUP
================================================== */

.popup-overlay{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.45);

    display:flex;

    justify-content:center;
    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9999;

}

.popup-overlay.show{

    opacity:1;

    visibility:visible;

}

.popup{

    width:380px;

    background:#fff;

    border-radius:20px;

    padding:35px 30px;

    text-align:center;

    box-shadow:0 20px 50px rgba(0,0,0,.25);

    transform:scale(.85);

    transition:.3s;

}

.popup-overlay.show .popup{

    transform:scale(1);

}

.popup-icon{

    font-size:55px;

    margin-bottom:15px;

}

.popup h2{

    color:#17324A;

    font-size:28px;

    margin-bottom:10px;

}

.popup p{

    color:#64748B;

    font-size:16px;

    line-height:24px;

    margin-bottom:28px;

}

#popupBtn{

    width:100%;

    height:50px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    color:#fff;

    font-size:16px;

    font-weight:600;

    background:linear-gradient(90deg,#1696B8,#0E4C7D);

    transition:.3s;

}

#popupBtn:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(14,76,125,.3);

}
.alert-error{
    background:#ffe5e5;
    color:#c62828;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
    text-align:center;
}