:root{
    --blue:#2563eb;
    --blue-dark:#1d4ed8;
    --dark:#0f172a;
    --bg:#f5f7fb;
    --muted:#64748b;
    --card:#ffffff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:var(--bg);
    color:#111;
}

/* ================= NAVBAR ================= */

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 50px;
    background:var(--dark);
    color:white;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo-wrap{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo-img{
    width:36px;
    height:36px;
    object-fit:contain;
}

.logo-text{
    font-weight:800;
    letter-spacing:1px;
    font-size:18px;
}

.nav-menu{
    display:flex;
    list-style:none;
    gap:12px;
    align-items:center;
}

.nav-btn{
    padding:8px 14px;
    border-radius:10px;
    text-decoration:none;
    color:white;
    background:rgba(255,255,255,0.08);
    transition:0.2s;
}

.nav-btn:hover{
    background:rgba(255,255,255,0.2);
    transform:translateY(-2px);
}

.nav-btn.primary{
    background:var(--blue);
}

.nav-btn.primary:hover{
    background:var(--blue-dark);
}

/* ================= HERO ================= */

.hero{
    padding:70px 50px;
    text-align:center;
}

.hero h1{
    font-size:36px;
    margin-bottom:10px;
}

.hero p{
    color:var(--muted);
    max-width:600px;
    margin:auto;
}

/* tombol login di index */
.form-box{
    margin-top:20px;
}

.form-box a.input{
    display:inline-block;
    padding:12px 20px;
    background:var(--blue);
    color:white;
    border-radius:12px;
    text-decoration:none;
    transition:0.2s;
}

.form-box a.input:hover{
    background:var(--blue-dark);
}

/* ================= SECTION ================= */

section{
    padding:60px 50px;
}

h2{
    text-align:center;
    margin-bottom:30px;
}

/* ================= CARD ================= */

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:var(--card);
    border-radius:16px;
    padding:20px;
    text-align:center;
    text-decoration:none;
    color:#111;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.2s;
    border:1px solid #eef2f7;
}

.card:hover{
    transform:translateY(-6px);
}

.card img{
    width:60px;
    margin-bottom:10px;
}

.card h3{
    margin-bottom:6px;
}

.card p{
    font-size:13px;
    color:var(--muted);
}

/* ================= TENTANG ================= */

.tentang{
    background:#eef2f7;
    text-align:center;
    padding:70px 50px;
}

.tentang p{
    max-width:700px;
    margin:auto;
    color:var(--muted);
}

/* ================= FOOTER ================= */

footer{
    text-align:center;
    padding:18px;
    background:var(--dark);
    color:white;
}

/* ================= AVATAR ================= */

.nav-avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    background:var(--blue);
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    cursor:pointer;
    color:white;
}

/* ================= MODAL ================= */

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
}

.modal-card{
    background:white;
    padding:25px;
    border-radius:14px;
    text-align:center;
    width:240px;
}

.avatar-big{
    width:80px;
    height:80px;
    border-radius:50%;
    background:var(--blue);
    display:flex;
    justify-content:center;
    align-items:center;
    margin:auto;
    font-size:28px;
    font-weight:bold;
    color:white;
}

.btn-modal{
    display:block;
    padding:10px;
    margin-top:10px;
    background:var(--dark);
    color:white;
    text-decoration:none;
    border-radius:8px;
}

.btn-modal.logout{
    background:crimson;
}

/* ================= LOGIN / REGISTER ================= */

.container{
    display:flex;
    min-height:100vh;
}

.left{
    flex:1;
    background:linear-gradient(135deg,#1f2937,#111827);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
}

.left-content{
    max-width:600px;
}

.hero-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.logo-login{
    width:110px;
}

.welcome-title{
    font-size:28px;
}

.welcome-title span{
    display:block;
    font-size:18px;
    color:#cbd5e1;
}

.left p,
.left ul li{
    color:#cbd5e1;
    margin-bottom:10px;
}

.right{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    background:white;
}

.form-box{
    width:100%;
    max-width:420px;
    padding:40px;
    text-align:left;
}

.form-box h1{
    margin-bottom:8px;
}

.form-box p{
    color:var(--muted);
    margin-bottom:20px;
}

.form-box input{
    width:100%;
    padding:14px;
    margin-bottom:12px;
    border:2px solid #e2e8f0;
    border-radius:12px;
    background:#f8fafc;
}

.form-box input:focus{
    border-color:var(--blue);
    outline:none;
    background:white;
}

.form-box button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:var(--blue);
    color:white;
    cursor:pointer;
    transition:0.2s;
}

.form-box button:hover{
    background:var(--blue-dark);
    transform:translateY(-2px);
}

.link{
    margin-top:18px;
    text-align:center;
}

.link a{
    color:var(--blue);
    font-weight:600;
    text-decoration:none;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){

    nav{
        flex-direction:column;
        gap:10px;
    }

    .container{
        flex-direction:column;
    }

    .left{
        padding:30px;
    }

    section{
        padding:40px 20px;
    }
}