/* --- Import Font & Variabel Warna --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #8A3FFC;
    --dark-purple: #5A1FC2;
    --secondary-color: #f4f4f9;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --grey: #6c757d;
}

/* --- Gaya Global & Reset (Mobile First) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Navbar (Mobile First) --- */
.navbar {
    background: var(--text-light);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.navbar-brand {
    font-weight: 800; font-size: 1.3rem;
    color: var(--primary-color); text-decoration: none;
}
.navbar-toggler {
    display: block;
    background: none; border: none; font-size: 1.5rem;
    color: var(--text-dark); cursor: pointer;
}
.navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}
.navbar-menu.active { display: flex; }
.navbar-menu a {
    color: var(--text-dark); text-decoration: none;
    padding: 0.8rem 0; font-weight: 600;
    border-top: 1px solid #eee;
}
.btn-login-nav {
    background: var(--primary-color); color: var(--text-light) !important;
    padding: 0.5rem 1rem; border-radius: 20px; margin-top: 0.5rem;
}

/* --- Hero Section (Mobile First) --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-purple));
    color: var(--text-light); text-align: center;
    padding: 4rem 0;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero .tagline { font-size: 1rem; margin-bottom: 1.5rem; opacity: 0.9; }
.event-date {
    background: rgba(255,255,255,0.1); padding: 0.5rem 1rem;
    border-radius: 30px; margin-bottom: 2rem; font-weight: 600; display: inline-block;
}
.cta-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center;}
.cta-buttons .btn {
    text-decoration: none; padding: 0.8rem 2rem;
    border-radius: 30px; font-weight: 700; transition: all 0.3s; width: 80%; max-width: 300px;
}
.btn-primary { background: var(--text-light); color: var(--primary-color); }
.btn-secondary { background: transparent; color: var(--text-light); border: 2px solid var(--text-light); }

/* --- Gaya Section Umum (Mobile First) --- */
section { padding: 3rem 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }

/* --- Timeline Jadwal (Mobile First) --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after {
    content: ''; position: absolute; width: 3px;
    background-color: var(--primary-color);
    top: 0; bottom: 0; left: 20px; margin-left: -1.5px;
}
.timeline-item { width: 100%; padding-left: 50px; padding-right: 10px; position: relative; margin-bottom: 2rem; }
.timeline-item::after {
    content: ''; position: absolute; width: 18px; height: 18px;
    background-color: white; border: 4px solid var(--primary-color);
    top: 5px; left: 12px; border-radius: 50%; z-index: 1;
}
.timeline-content { padding: 15px; background-color: var(--secondary-color); border-radius: 8px; }
.timeline-content h3 { font-size: 1.1rem; }

/* --- Galeri (Mobile First) --- */
.gallery { background: var(--secondary-color); }
.gallery-grid-public {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-item .overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-light); padding: 1rem; font-weight: 600;
}

/* --- Footer --- */
.footer { background: var(--text-dark); color: var(--grey); padding: 2rem 0; text-align: center; }
.social-media { margin-top: 1rem; }
.social-media a { color: var(--text-light); font-size: 1.5rem; margin: 0 0.5rem; }

/* --- Media Query untuk Tablet & Desktop (Layar Lebih Besar) --- */
@media (min-width: 768px) {
    .navbar-toggler { display: none; }
    .navbar-menu {
        display: flex; flex-direction: row; width: auto; margin-top: 0;
    }
    .navbar-menu a { border-top: none; padding: 0; margin-left: 1.5rem; }
    .btn-login-nav { margin-top: 0; }
    
    .hero { padding: 6rem 0; }
    .hero h1 { font-size: 3.5rem; }
    .hero .tagline { font-size: 1.2rem; }
    .cta-buttons { flex-direction: row; justify-content: center; }
    .cta-buttons .btn { width: auto; }
    
    .section-title { font-size: 2.5rem; }
    
    .timeline::after { left: 50%; }
    .timeline-item { width: 50%; padding: 0 40px; }
    .timeline-item:nth-child(odd) { left: 0; }
    .timeline-item:nth-child(even) { left: 50%; }
    .timeline-item::after { left: 50%; margin-left: -9px; }
    .timeline-item:nth-child(odd)::after { transform: translateX(-50%); }
    .timeline-item:nth-child(even)::after { transform: translateX(-50%); }

    .gallery-grid-public { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .gallery-grid-public { grid-template-columns: repeat(3, 1fr); }
}

/* --- Gaya Halaman Otentikasi (Login, Register, Reset Password) --- */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-purple));
    padding: 1rem; /* Padding agar kartu tidak menempel di tepi layar */
}
.auth-container {
    width: 100%;
    max-width: 420px;
}
.auth-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    text-align: center;
}
.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    margin-bottom: 1.5rem;
    color: var(--grey);
    font-size: 0.95rem;
}
.auth-subtitle a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.input-group {
    margin-bottom: 1rem;
    text-align: left;
}
.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}
.btn-auth {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}
.btn-auth:hover {
    background: var(--dark-purple);
}
.auth-extra a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}
.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    text-align: left;
    font-size: 0.95rem;
}
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }


/* --- PENYESUAIAN UNTUK LAYAR SANGAT KECIL (Dibawah 400px) --- */
@media (max-width: 400px) {
    .auth-card {
        padding: 1.5rem; /* Kurangi padding agar tidak terlalu sempit */
    }
    .auth-title {
        font-size: 1.6rem; /* Kecilkan sedikit judul */
    }
}