/*==================================================
    LOGIN APP
    PESANTREN AL-MAHFUDZ
==================================================*/

:root{

    --primary:#0B6B3A;
    --primary2:#0F8E4A;
    --dark:#064826;

    --white:#ffffff;
    --bg:#f5f7fa;

    --text:#222;
    --text2:#777;

    --border:#e8e8e8;

    --radius:28px;

    --shadow:
        0 20px 60px rgba(0,0,0,.18);

    --transition:.30s ease;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:linear-gradient(
        150deg,
        var(--dark),
        var(--primary),
        var(--primary2)
    );

    overflow-x:hidden;

    min-height:100vh;

    color:var(--text);

}


/*=================================
BACKGROUND
=================================*/

.bg{

    position:fixed;

    inset:0;

    overflow:hidden;

    z-index:-1;

}

.circle{

    position:absolute;

    border-radius:50%;

    filter:blur(40px);

    opacity:.25;

    animation:float 10s infinite ease-in-out;

}

.circle1{

    width:280px;
    height:280px;

    background:#fff;

    top:-60px;
    right:-80px;

}

.circle2{

    width:220px;
    height:220px;

    background:#8CFFB8;

    bottom:-50px;
    left:-70px;

    animation-delay:2s;

}

.circle3{

    width:160px;
    height:160px;

    background:#D7FFE7;

    top:40%;

    left:60%;

    animation-delay:4s;

}

@keyframes float{

    0%{

        transform:
        translateY(0)
        translateX(0);

    }

    50%{

        transform:
        translateY(-25px)
        translateX(20px);

    }

    100%{

        transform:
        translateY(0)
        translateX(0);

    }

}


/*=================================
LOGIN APP
=================================*/

.login-app{

    min-height:100vh;

    display:flex;

    flex-direction:column;

}


/*=================================
HERO
=================================*/

.hero{

    padding:

    max(30px,env(safe-area-inset-top))

    28px

    140px;

    text-align:center;

    color:#fff;

    position:relative;

    animation:fadeDown .7s;

}

.back-btn{

    position:absolute;

    top:25px;
    left:20px;

    width:42px;
    height:42px;

    border-radius:14px;

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(8px);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    transition:.25s;

}

.back-btn:hover{

    background:rgba(255,255,255,.18);

}

.hero-logo{

    width:95px;

    height:95px;

    margin:auto;

    background:#fff;

    border-radius:28px;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:

    0 10px 30px rgba(0,0,0,.25);

}

.hero-logo img{

    width:70px;

}

.hero h1{

    margin-top:20px;

    font-size:32px;

    font-weight:700;

    line-height:1.3;

}

.hero p{

    margin-top:10px;

    font-size:14px;

    opacity:.9;

    line-height:1.7;

}


/*=================================
BOTTOM SHEET
=================================*/

.bottom-sheet{

    flex:1;

    background:#fff;

    border-radius:

    35px 35px 0 0;

    margin-top:-65px;

    padding:30px 25px;

    box-shadow:

    0 -5px 30px rgba(0,0,0,.12);

    animation:slideUp .7s;

}

.sheet-indicator{

    width:70px;

    height:6px;

    border-radius:20px;

    background:#ddd;

    margin:auto;

}

.sheet-header{

    text-align:center;

    margin-top:18px;

    margin-bottom:30px;

}

.sheet-header h2{

    font-size:30px;

    color:#222;

}

.sheet-header small{

    color:#888;

    font-size:14px;

}
/*=================================
INPUT GROUP
=================================*/

.input-group{
    margin-bottom:22px;
}

.input-group label{
    display:block;
    font-size:13px;
    font-weight:600;
    color:#555;
    margin-bottom:10px;
}

.input-box{
    position:relative;
    display:flex;
    align-items:center;
    background:#f8f9fb;
    border:1px solid #e8e8e8;
    border-radius:18px;
    overflow:hidden;
    transition:.3s;
}

.input-box:hover{
    border-color:#0B6B3A;
}

.input-box:focus-within{
    border-color:#0B6B3A;
    background:#fff;
    box-shadow:0 0 0 5px rgba(11,107,58,.12);
}

.input-box i:first-child{
    width:55px;
    text-align:center;
    color:#0B6B3A;
    font-size:18px;
}

.input-box input{
    flex:1;
    border:none;
    outline:none;
    background:transparent;
    padding:17px 10px;
    font-size:15px;
    color:#222;
    font-family:'Poppins',sans-serif;
}

.input-box input::placeholder{
    color:#aaa;
}

.show-password{
    width:55px;
    height:55px;
    border:none;
    background:none;
    cursor:pointer;
    color:#888;
    transition:.3s;
}

.show-password:hover{
    color:#0B6B3A;
}


/*=================================
REMEMBER
=================================*/

.remember-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.remember{
    display:flex;
    align-items:center;
    cursor:pointer;
    user-select:none;
    font-size:14px;
    color:#555;
}

.remember input{
    display:none;
}

.remember span{
    width:22px;
    height:22px;
    border-radius:7px;
    border:2px solid #0B6B3A;
    margin-right:10px;
    position:relative;
    transition:.25s;
}

.remember input:checked + span{
    background:#0B6B3A;
}

.remember input:checked + span::after{
    content:"";
    position:absolute;
    left:6px;
    top:2px;
    width:5px;
    height:10px;
    border:solid #fff;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
}


/*=================================
BUTTON
=================================*/

.login-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:18px;
    background:linear-gradient(135deg,#0B6B3A,#0F8E4A);
    color:#fff;
    font-size:16px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 15px 30px rgba(11,107,58,.25);
}

.login-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 35px rgba(11,107,58,.35);
}

.login-btn:active{
    transform:scale(.98);
}

.login-btn i{
    font-size:17px;
}


/*=================================
ALERT
=================================*/

.alert{
    display:flex;
    align-items:center;
    gap:12px;
    background:#FFF3F3;
    color:#C62828;
    padding:15px;
    border-radius:16px;
    margin-bottom:25px;
    border:1px solid #FFD8D8;
    font-size:14px;
}

.alert i{
    font-size:18px;
}


/*=================================
INFO
=================================*/

.login-info{
    margin-top:25px;
    background:#F5FFF8;
    border-radius:16px;
    padding:16px;
    font-size:13px;
    color:#666;
    line-height:1.7;
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.login-info i{
    color:#0B6B3A;
    font-size:18px;
}


/*=================================
FOOTER
=================================*/

.app-footer{
    text-align:center;
    margin-top:35px;
}

.app-footer strong{
    display:block;
    color:#333;
    margin-bottom:6px;
}

.app-footer p{
    color:#999;
    font-size:12px;
}
/*=================================
LOADING SCREEN
=================================*/

.loading-screen{
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(8px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.loader{
    display:flex;
    gap:10px;
}

.loader span{
    width:16px;
    height:16px;
    border-radius:50%;
    background:var(--primary);
    animation:loaderBounce 0.8s infinite alternate;
}

.loader span:nth-child(2){
    animation-delay:.2s;
}

.loader span:nth-child(3){
    animation-delay:.4s;
}

@keyframes loaderBounce{

    from{
        transform:translateY(0);
        opacity:.6;
    }

    to{
        transform:translateY(-18px);
        opacity:1;
    }

}

/*=================================
ANIMATION
=================================*/

@keyframes fadeDown{

    from{
        opacity:0;
        transform:translateY(-35px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes slideUp{

    from{
        opacity:0;
        transform:translateY(60px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.hero-logo{
    animation:logoPop .7s ease;
}

@keyframes logoPop{

    0%{
        transform:scale(.6);
        opacity:0;
    }

    70%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
        opacity:1;
    }

}

/*=================================
INPUT EFFECT
=================================*/

.input-box input:focus{
    caret-color:var(--primary);
}

.input-box:focus-within i:first-child{
    color:var(--primary2);
    transform:scale(1.1);
}

/*=================================
BUTTON RIPPLE
=================================*/

.login-btn{
    position:relative;
    overflow:hidden;
}

.login-btn::after{

    content:"";

    position:absolute;

    width:0;
    height:0;

    border-radius:50%;

    background:rgba(255,255,255,.35);

    transform:translate(-50%,-50%);

    transition:.55s;

}

.login-btn:active::after{

    width:320px;
    height:320px;

}

/*=================================
SCROLLBAR
=================================*/

::-webkit-scrollbar{
    width:7px;
}

::-webkit-scrollbar-thumb{
    background:#b9b9b9;
    border-radius:30px;
}

::-webkit-scrollbar-track{
    background:#efefef;
}

/*=================================
RESPONSIVE
=================================*/

@media(max-width:768px){

.hero{

    padding-top:35px;
    padding-left:24px;
    padding-right:24px;
    padding-bottom:130px;

}

.hero h1{

    font-size:28px;

}

.hero p{

    font-size:13px;

}

.bottom-sheet{

    padding:24px 20px;
    border-radius:28px 28px 0 0;

}

.hero-logo{

    width:82px;
    height:82px;

}

.hero-logo img{

    width:60px;

}

.login-btn{

    height:55px;

}

}

@media(max-width:420px){

.hero h1{

    font-size:24px;

}

.sheet-header h2{

    font-size:26px;

}

.input-box input{

    font-size:14px;

}

.input-box{

    border-radius:16px;

}

.login-btn{

    font-size:15px;

}

}

/*=================================
SAFE AREA
=================================*/

body{

    padding-bottom:env(safe-area-inset-bottom);

}

.bottom-sheet{

    padding-bottom:
    calc(30px + env(safe-area-inset-bottom));

}

/* Ripple */

.login-btn{
    position:relative;
    overflow:hidden;
}

.ripple{

    position:absolute;

    border-radius:50%;

    transform:scale(0);

    background:rgba(255,255,255,.35);

    animation:ripple .6s linear;

    pointer-events:none;

}

@keyframes ripple{

    to{

        transform:scale(4);

        opacity:0;

    }

}
/* ==========================
   LOGIN LINKS
========================== */

.login-links{
    display:flex;
    justify-content:flex-end;
    margin:12px 0 20px;
}

.forgot-link{
    color:#0B6B3A;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.2s;
}

.forgot-link:hover{
    opacity:.8;
}

/* ==========================
   DIVIDER
========================== */

.login-divider{
    display:flex;
    align-items:center;
    margin:22px 0;
}

.login-divider::before,
.login-divider::after{
    content:"";
    flex:1;
    height:1px;
    background:#e5e7eb;
}

.login-divider span{
    padding:0 14px;
    font-size:13px;
    color:#888;
}

/* ==========================
   OTP LOGIN
========================== */

.otp-login-btn{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border:2px solid #0B6B3A;
    border-radius:16px;
    text-decoration:none;
    color:#0B6B3A;
    transition:.25s;
}

.otp-login-btn i{
    font-size:22px;
}

.otp-login-btn strong{
    display:block;
    font-size:15px;
}

.otp-login-btn small{
    display:block;
    color:#666;
    margin-top:2px;
    font-size:12px;
}

.otp-login-btn:hover{
    background:#0B6B3A;
    color:#fff;
}

.otp-login-btn:hover small{
    color:#eef7f2;
}
/*=================================
END LOGIN CSS
=================================*/
