/* RESET */
*{
    box-sizing:border-box;
}

html, body{
    margin:0;
    width:100%;
    font-family:"Segoe UI", Arial, sans-serif;
}

/* BODY */
body{
    background:linear-gradient(135deg,#0d2f6b,#1f5bd9);
    min-height:100svh;

    display:flex;
    justify-content:center;
    align-items:flex-start; /* pakai flex-start untuk kontrol vertical */
    padding:60px 0;         /* jarak atas/bawah agar form tidak terlalu ke atas */
}

/* MAIN WRAPPER */
.login-wrapper{
    width:100%;
    max-width:900px;
    min-height:520px;

    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 30px 60px rgba(0,0,0,.4);
    display:flex;

    margin:0 auto; /* horizontal center */
}

/* LEFT PANEL */
.login-left{
    width:50%;
    background:
        linear-gradient(rgba(31,64,122,.85), rgba(31,64,122,.85)),
        url("../images/gis/header-bg.png") center / cover no-repeat;

    color:white;
    padding:50px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.login-left img{
    max-width:260px;
    margin-bottom:30px;
}

.login-left h2{
    font-size:36px;
    margin:0 0 10px 0;
}

.login-left p{
    opacity:.9;
}

/* BACK BUTTON */
.back-btn{
    margin-top:30px;
}

.back-btn a{
    display:inline-flex;
    padding:10px 22px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    color:white;
    text-decoration:none;
    font-weight:600;
    border:1px solid rgba(255,255,255,.4);
}

/* RIGHT PANEL */
.login-right{
    width:50%;
    padding:50px 40px;
}

/* TITLE */
.login-right h3{
    color:#1f407a;
    font-size:26px;
    margin:0 0 5px 0;
}

.login-right p{
    margin:0 0 25px 0;
    color:#777;
}

/* INPUT */
.input-group{
    margin-bottom:20px;
}

.input-group input{
    width:100%;
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:15px;
}

/* PASSWORD */
.password-box{
    position:relative;
}

.password-box input{
    padding-right:45px;
}

.toggle-password{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
}

/* CAPTCHA */
.captcha{
    display:flex;
    gap:10px;
    align-items:center;
}

.captcha img{
    height:42px;
    width:auto;
    border-radius:6px;
    max-width:200px; /* batasi di HP */
}

.captcha input{
    flex:1; /* input ambil sisa lebar */
}

/* BUTTON */
.login-btn{
    width:100%;
    padding:14px;
    background:linear-gradient(to right,#1f407a,#2c5db8);
    color:white;
    border:none;
    border-radius:30px;
    font-weight:bold;
    cursor:pointer;
}

/* ERROR */
.error{
    color:red;
    margin-bottom:15px;
}

/* FOOTER */
.login-footer{
    margin-top:30px;
    color:#888;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.login-date{
    font-size:14px;
    font-weight:600;
}

.login-time{
    font-size:13px;
    opacity:0.8;
}

/* TABLET & MOBILE */
@media (max-width:900px){

    body{
        align-items:flex-start;
        padding-top:30px;
        padding-bottom:30px;
    }

    .login-wrapper{
        flex-direction:column;
        width:100%;
        min-height:auto;
        border-radius:0;
    }

    .login-left,
    .login-right{
        width:100%;
    }

    .login-left{
        padding:30px 20px;
        text-align:center;
    }

    .login-left img{
        max-width:180px;
        margin-bottom:20px;
    }

    .login-left h2{
        font-size:28px;
    }

    .login-right{
        padding:30px 20px;
    }

    .captcha{
        flex-direction:row; /* tetap 1 baris */
        align-items:center;
    }

    .captcha img{
        max-width:120px; /* batas lebar di tablet */
        height:auto;
    }
}

/* MOBILE SMALL */
@media(max-width:768px){
    .captcha img{
        width:100px;
        height:auto;
    }
}
