/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

html,
body{
    min-height:100vh;
}

body{
    background:linear-gradient(135deg,#0F3D8C,#2563EB);
    background-attachment:fixed;
}

/* =========================
   HEADER
========================= */
.header{
    height:60px;
    background:#fff;
    border-bottom:1px solid #ddd;
    padding:0 25px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-area img,
.logo{
    width:40px;
    height:40px;
    object-fit:contain;
}

.logo-text h2{
    font-size:18px;
    font-weight:bold;
}

.logo-text p{
    font-size:12px;
    color:#666;
}

.login-link{
    display:flex;
    align-items:center;
    gap:15px;
}

.login-link span{
    white-space:nowrap;
}

/* =========================
   CONTAINER
========================= */
.container{
    display:flex;
    justify-content:center;
    align-items:center;

    min-height:calc(100vh - 60px);

    padding:25px 20px;
}

/* =========================
   CARD
========================= */
.card{
    width:100%;
    max-width:550px;

    background:#fff;

    border-radius:12px;

    padding:25px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.logo-form{
    text-align:center;
    margin-bottom:10px;
}

.logo-form img{
    width:55px;
}

.card h1{
    text-align:center;
    font-size:28px;
    margin-bottom:8px;
}

.subtitle{
    text-align:center;
    color:#666;
    margin-bottom:18px;
    font-size:14px;
}

.card hr{
    border:none;
    border-top:1px solid #ddd;
    margin-bottom:18px;
}

/* =========================
   FORM
========================= */
label{
    display:block;
    margin:12px 0 6px;
    font-weight:600;
    font-size:14px;
}

.input-group{
    position:relative;
    width:100%;
    margin-bottom:16px;
}

.input-group i{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#8a8f98;
    font-size:14px;
    pointer-events:none;
}

.input-group input,
.input-group select{
    width:100%;
    height:45px;
    padding:0 50px 0 40px; /* Lebih banyak padding di kanan untuk icon */
    border:1px solid #dcdfe6;
    border-radius:8px;
    background-color:#eef1fb;
    font-size:14px;
    box-sizing:border-box;
    outline:none;
}

.input-group input:focus,
.input-group select:focus{
    border-color:#3b5bdb;
    background-color:#ffffff;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.toggle-password{
    position:absolute;
    right:12px; /* Lebih dekat ke tepi kanan input */
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#8a8f98;
    font-size:16px; /* Ukuran icon sedikit lebih besar */
    z-index:10; /* Pastikan berada di atas input */
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
}

.toggle-password:hover{
    color:#3b5bdb;
}

/* Sembunyikan icon password bawaan browser untuk SEMUA browser */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display:none !important;
}
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-inner-spin-button,
input[type="password"]::-webkit-outer-spin-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-reveal-button {
    display:none !important;
}
input[type="password"]::-moz-reveal {
    display:none !important;
}
input[type="password"]::reveal {
    display:none !important;
}

/* =========================
   CHECKBOX
========================= */
.remember{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    font-size:14px;
}

.remember label{
    margin:0;
    font-weight:normal;
}

/* =========================
   BUTTON HEADER
========================= */
.btn-registrasi,
.btn-header{
    width:130px;
    height:42px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#2563EB;
    color:#fff;

    border:2px solid #2563EB;
    border-radius:10px;

    text-decoration:none;
    font-size:15px;
    font-weight:600;

    transition:all .3s ease;
}

/* =========================
   BUTTON FORM
========================= */
.btn-login,
.btn-daftar{
    width:100%;
    height:45px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin-top:18px;

    background:#2563EB;
    color:#fff;

    border:2px solid #2563EB;
    border-radius:10px;

    text-decoration:none;
    font-size:15px;
    font-weight:600;

    cursor:pointer;

    transition:all .3s ease;
}

/* =========================
   HOVER BUTTON
========================= */
.btn-login:hover,
.btn-daftar:hover,
.btn-registrasi:hover,
.btn-header:hover{
    background:#fff;
    color:#2563EB;
}

.btn-login:active,
.btn-daftar:active,
.btn-registrasi:active,
.btn-header:active{
    transform:scale(.97);
}

/* =========================
   LINK
========================= */
.forgot-password,
.footer-text{
    text-align:center;
    margin-top:20px;
}

.forgot-password a,
.footer-text a{
    color:#2563EB;
    text-decoration:none;
    font-weight:600;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){

    .header{
        flex-direction:column;
        height:auto;
        gap:12px;
        padding:15px;
    }

    .card{
        width:100%;
        padding:25px;
    }

    .card h1{
        font-size:32px;
    }

    .logo-text h2{
        font-size:18px;
    }

    .btn-login,
    .btn-daftar{
        width:100%;
    }
}
/* =====================================
   REGISTER PAGE
===================================== */

.header-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.header-left .logo{
    width:50px;
    height:50px;
}

.header-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.register-card{
    width:100%;
    max-width:550px;
    background:#fff;
    border-radius:12px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.logo-center{
    width:55px;
    display:block;
    margin:0 auto 10px;
}

.register-card h1{
    text-align:center;
    margin-bottom:8px;
    font-size:28px;
}

.form-group{
    margin-bottom:12px;
}

.input-box{
    position:relative;
}

.input-box i{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    color:#666;
}

.input-box{
    position:relative;
    width:100%;
    margin-bottom:12px;
}

.input-box i{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#8a8f98;
    font-size:14px;
    pointer-events:none;
}

.input-box input,
.input-box select{
    width:100%;
    height:45px;
    padding:0 42px 0 40px;
    border:1px solid #dcdfe6;
    border-radius:8px;
    background-color:#eef1fb;
    font-size:14px;
    box-sizing:border-box;
    outline:none;
}

.input-box input:focus,
.input-box select:focus{
    border-color:#3b5bdb;
    background-color:#ffffff;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.btn-register{
    width:100%;
    height:45px;

    margin-top:18px;

    background:#2563EB;
    color:#fff;

    border:2px solid #2563EB;
    border-radius:10px;

    font-size:15px;
    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.btn-register:hover{
    background:#fff;
    color:#2563EB;
}

.privacy{
    text-align:center;
    margin-top:20px;
    color:#666;
    font-size:14px;
}

.privacy a{
    color:#2563EB;
    text-decoration:none;
}
/* HEADER KANAN */
.header-right{
    display:flex;
    align-items:center; /* membuat teks dan tombol sejajar vertikal */
    gap:12px;
}

.header-right span{
    margin:0;
    padding:0;
    line-height:1;
    white-space:nowrap;
    font-size:14px;
}

.header-right .btn-login{
    width:130px;
    height:42px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#2563EB;
    color:white;

    border:2px solid #2563EB;
    border-radius:10px;

    text-decoration:none;
    font-size:15px;
    font-weight:600;

    transition:.3s;
}

.header-right .btn-login:hover,
.header-right .btn-registrasi:hover{
    background:#fff;
    color:#2563EB;
}
.header-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.header-left .logo{
    width:40px;
    height:40px;
    object-fit:contain;
}

.header-left h2{
    font-size:18px;
    font-weight:bold;
}

.header-left p{
    font-size:12px;
    color:#666;
}
.alert-error{
    background:#ffe5e5;
    color:#d63031;
    border:1px solid #ffb3b3;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
    font-size:14px;
    text-align:center;
}
/* =========================
   LUPA PASSWORD
========================= */

.forgot-container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#0F3D8C,#2563EB);
    padding:20px;
}

.forgot-card{
    width:100%;
    max-width:500px;
    background:#fff;
    border-radius:20px;
    padding:40px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.forgot-logo{
    width:90px;
    margin-bottom:20px;
}

.forgot-card h2{
    color:#2563EB   ;
    margin-bottom:15px;
    font-size:28px;
}

.forgot-text{
    color:#666;
    line-height:1.8;
    margin-bottom:30px;
}

.btn-back-login{
    display:inline-block;
    background:#2563EB;
    color:#fff;
    text-decoration:none;
    padding:12px 25px;
    border-radius:10px;
    font-weight:600;
    transition:0.3s;
}

.btn-back-login:hover{
    background:#2563EB;
}