:root{
    --primary:#1E3A8A;
    --secondary:#3B82F6;
    --background:#F1F5F9;
    --text:#64748B;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    min-height:100vh;
    background:var(--background);
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
}

/* HEADER */

.topbar{
    height:65px;
    padding:0 40px;
    display:flex;
    align-items:center;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(0,0,0,.05);
}

/* LAYOUT */

.login-layout{
    flex:1;
    display:grid;
    grid-template-columns:68% 32%;
}
/* ===== BRAND ===== */
.brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:26px;
    font-weight:700;
    color:var(--primary);
    text-decoration:none;
}

.brand span{
    color:var(--primary);
}

.brand-logo{
    width:40px;
    height:40px;
    object-fit:contain;
}

/* HERO */

.hero-section{
    position:relative;
    overflow:hidden;
    background: url('/assets/1.jpg') no-repeat center center/cover;
}

.hero-overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        135deg,
        rgba(30,58,138,.92),
        rgba(59,130,246,.75)
    );
}

.hero-content{
    position:relative;
    z-index:2;

    max-width:520px;

    color:#fff;

    padding:60px;

    top:50%;
    transform:translateY(-50%);
}

.hero-content h1{
    font-size:30px;
    line-height:1.3;
    margin-bottom:20px;
}

.hero-content p{
    font-size: 15px;
    line-height:1.8;
    margin-bottom:28px;
}

.hero-features{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.feature-box{
    display:flex;
    align-items:center;
    gap:12px;

    padding:15px;

    border-radius:14px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(10px);
}

.feature-box i{
    font-size:22px;
}

/* LOGIN */

.login-side{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:25px;
}

.login-card{
    width:100%;
    max-width:380px;

    background:#fff;

    padding:30px;

    border-radius:22px;

    border:1px solid rgba(59,130,246,.1);

    box-shadow:
        0 10px 40px rgba(30,58,138,.08);
}

.login-header{
    margin-bottom:25px;
}

.login-header h2{
    color:var(--primary);
    margin-bottom:5px;
}

.login-header p{
    color:var(--text);
}

/* ERROR */

.error{
    background:#fee2e2;
    color:#dc2626;
    padding:12px;
    border-radius:10px;
    margin-bottom:20px;
    text-align:center;
}

/* FORM */

.input-group{
    margin-bottom:18px;
}

.input-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#334155;
}

.input-box{
    position:relative;
}

.input-box > i{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#64748B;
}

.input-box input{
    width:100%;
    height:48px;

    padding-left:42px;
    padding-right:45px;

    border:1px solid #dbe2f0;
    border-radius:12px;

    outline:none;
    transition:.3s;
}

.input-box input:focus{
    border-color:var(--secondary);
    box-shadow:
        0 0 0 4px rgba(59,130,246,.08);
}

/* PASSWORD TOGGLE */

.toggle-password{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);

    border:none;
    background:none;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}

.toggle-password i{
    color:#64748B;
    font-size:15px;
}

/* HILANGKAN ICON PASSWORD BAWAAN BROWSER */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear{
    display:none;
}

input[type="password"]{
    appearance:none;
    -webkit-appearance:none;
}

/* BUTTON */

.btn-login{
    width:100%;

    border:none;
    cursor:pointer;

    padding:13px;

    border-radius:12px;

    color:#fff;
    font-weight:600;

    background:
    linear-gradient(
        135deg,
        #1E3A8A,
        #2D5CC9,
        #3B82F6
    );
}

.btn-login:hover{
    opacity:.95;
}

/* FOOTER */

.footer{
    padding:15px;
    text-align:center;
    font-size:13px;
    color:var(--text);
    background:#fff;
}

/* RESPONSIVE */

@media(max-width:992px){

    .login-layout{
        grid-template-columns:1fr;
    }

    .hero-section{
        display:none;
    }

    .login-card{
        max-width:420px;
    }
}