/* =====================
   RESET & GLOBAL
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

/* =====================
   HEADER
===================== */
header {
    background: #2f6f4e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 80px;
}

.logo a {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
}

/* =====================
   NAV HORIZONTAL (FIX MOBILE)
===================== */
.nav-horizontal {
    display: flex;
    gap: 18px;
}

.nav-horizontal a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

    .nav-horizontal {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;              /* ðŸ”¥ KUNCI */
        overflow-x: auto;               /* ðŸ”¥ KUNCI */
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px;
        gap: 10px;
    }

    .nav-horizontal a {
        flex: 0 0 auto;                 /* ðŸ”¥ KUNCI */
        padding: 8px 18px;
        background: rgba(255,255,255,0.15);
        border-radius: 6px;
        font-size: 13px;
    }

    /* sembunyikan scrollbar */
    .nav-horizontal::-webkit-scrollbar {
        display: none;
    }
}


/* ================= CONTENT ================= */
.produk{
    padding:40px 20px;
    text-align:center;
}

/* ================= CARD ================= */
.card{
    background:#fff;
    border-radius:8px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

/* ================= FORM ================= */
form label{
    display:block;
    margin-top:10px;
    font-weight:bold;
}

form input{
    width:100%;
    padding:8px;
    margin-top:5px;
    border:1px solid #ccc;
    border-radius:5px;
}

form button{
    width:100%;
    margin-top:15px;
    padding:10px;
    background:#2f6f4e;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

form button:hover{
    background:#1f5037;
}

/* ================= ERROR ================= */
salah{
    display:block;
    margin-top:3px;
    font-size:12px;
    color:red;
}

/* ================= FOOTER ================= */
footer{
    background:#333;
    color:#fff;
    text-align:center;
    padding:15px;
    margin-top:40px;
}
/* ================= PASSWORD TOGGLE ================= */
.password-wrapper{
    position: relative;
    width: 100%;
}

.password-wrapper input{
    padding-right: 42px; /* ruang icon */
}

.toggle-password{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #777;
    user-select: none;
}

.toggle-password:hover{
    color: #2f6f4e;
}

.forgot-password{
    margin-top:12px;
    text-align:right;
}

.forgot-password a{
    font-size:13px;
    color:#2f6f4e;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}

.forgot-password a:hover{
    color:#1f5037;
    text-decoration:underline;
}

.search-form{
    display:flex;
    justify-content:center;
    margin:20px 0;
    gap:10px;
}

.search-form input{
    width:280px;
    padding: 5px;
    border-radius:6px;
    border:1px solid #ccc;
}

.search-form button{
    background:#2f6f4e;
    color:#fff;
    width : 70px;  
    border:none;
    padding: 5px 5px;
    border-radius:6px;
    cursor:pointer;
}

.search-form button:hover{
    background:#245a3f;
}