/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff78e9; /* Hijau daun segar */
    --secondary-color: #fb30d9; /* Hijau lebih gelap */
    --text-color: #333;
    --bg-light: #fff;
    --bg-overlay: rgba(0, 0, 0, 0.4);
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
}

/* ===== NAVBAR ===== */
header.transparent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    padding: 0 20px;
    z-index: 1000;
}

/* Menu Utama */
.center-nav {
    display: flex;
    justify-content: center;
    flex: 1;
    transition: all 0.3s ease;
}

.center-nav .menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.center-nav .menu > li > a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

.center-nav .menu > li > a:hover,
.center-nav .menu > li > a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-light);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
    padding: 10px 0;
    list-style: none;
    z-index: 2000;
}

.dropdown-content li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-content li:hover {
    background: var(--primary-color);
}

.dropdown.open .dropdown-content {
    display: block;
}

/* Login Area (Kanan) */
.login-area {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tombol Login */
.login-btn {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.95rem;
}

.login-btn:hover {
    background-color: var(--secondary-color);
}

/* User Icon (saat login) */
.user-icon {
    position: relative;
    cursor: pointer;
}

.user-icon img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

/* Dropdown Logout */
.logout-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--bg-light);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 2000;
}

.logout-dropdown button {
    background: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-dropdown button:hover {
    background: var(--secondary-color);
}

/* ===== HERO SECTION ===== */
.hero.full-bg {
    background: url("../img/landingpage.jpg") no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-light);
    position: relative;
}

.hero.full-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
        0,
        0,
        0,
        0.6
    ); /* Tambahkan latar belakang semi-transparan untuk keterbacaan yang lebih baik */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700; /* Buat lebih tebal untuk penekanan */
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    /* margin-bottom: 50px; */
    margin: 0 auto 1.5rem auto;
}

.hero-content p:last-of-type {
    margin-bottom: 50px; /* Beri jarak lebih pada paragraf terakhir sebelum tombol */
}

/* Tombol Hero */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid var(--bg-light);
    color: var(--bg-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--bg-light);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .center-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(6px);
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 999;
    }

    .center-nav.open {
        display: flex;
    }

    .center-nav .menu {
        flex-direction: column;
        gap: 20px;
    }

    .center-nav .menu > li > a {
        color: var(--bg-light);
        font-size: 1.2rem;
    }

    .login-area {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* margin: 60px 0 10px 0; */
    }

    .hero-content p {
        font-size: 1rem; /* Sesuaikan ukuran font untuk perangkat seluler */
    }
}

/* ===== LOGIN PAGE ===== */
body.login-page,
body.register-page {
    background: url("../img/landingpage.jpg") no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-family: "Poppins", sans-serif;
}

body.login-page .overlay,
body.register-page .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.login-container,
.register-container {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
}

.login-container h2,
.register-container h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.login-container form,
.register-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-container input,
.register-container input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-login,
.btn-register {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-login:hover,
.btn-register:hover {
    background: var(--secondary-color);
}

.register-text,
.login-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.register-text a,
.login-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 900px) {
    .login-container,
    .register-container {
        width: 90%;
        padding: 20px;
    }

    .login-container h2,
    .register-container h2 {
        font-size: 1.5rem;
    }

    .login-container input,
    .register-container input,
    .btn-login,
    .btn-register {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Pesan error register */
.error-box {
    background: #ffe6e6;
    color: #cc0000;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: left;
}

.error-box ul {
    margin: 0;
    padding-left: 18px;
}

/* Field error styling untuk validasi input */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.field-error {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    margin-top: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid #f5c6cb;
}
