* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --dark-bg: #2C3D5B;
}

body {
    background-color: #f4f4f4;
}

header {
    background-color: white;
    padding: 15px 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-right-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a.active {
    background: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-signup,
.btn-login {
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-signup {
    background: white;
    color: #2c3e50;
    border: 1px solid #ccc;
}

.btn-login {
    background: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
}

.hero {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('ResidensiSeriSerindit.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 60px;
    font-weight: bold;
}

.hero .subtitle {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-light {
    padding: 12px 25px;
    background: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.btn-outline {
    padding: 12px 25px;
    background: #2c3e50;
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #1a252f;
}

.info-section {
    background-color: #2C3D5B;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-text {
    margin-bottom: 40px;
    font-size: 18px;
    opacity: 0.9;
}

.info-title {
    text-align: left;
    margin-bottom: 20px;
    font-weight: normal;
}

.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card {
    background: white;
    color: #333;
    padding: 40px 20px;
    border-radius: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px;
}

.card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.card h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    font-size: 14px;
    color: #666;
}

.overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
}

.overlay-content.new-style {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.overlay-content.new-style h2 {
    color: #000;
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: bold;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-form label {
    display: block;
    color: #111;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: background 0.2s;
}

.auth-form input:focus {
    background: #e4e4e4;
}

.forgot-password {
    display: block;
    text-align: right;
    color: #c8a400;
    font-size: 0.85rem;
    margin-bottom: 18px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: #1e2a3f;
}

.auth-link {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.auth-link a {
    color: #2C3D5B;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.auth-link a:hover {
    color: #1a252f;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    transition: background 0.3s;
}

.dot.active {
    background: #2c3e50;
}

/* ============================================
   RESPONSIVE PATCH - Tambah ke BAWAH style1.css
   DAN style2.css (sama untuk kedua-dua)
   ============================================ */

@media (max-width: 768px) {

    /* NAVBAR */
    header {
        padding: 12px 16px;
    }

    nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-right-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .auth-buttons {
        justify-content: center;
        width: 100%;
    }

    /* HERO */
    .hero {
        min-height: 350px;
        height: auto;
        padding: 40px 16px;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero .subtitle,
    .hero-content .subtitle {
        font-size: 1.1rem !important;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-light,
    .btn-dark-outline,
    .btn-outline {
        width: 200px;
    }

    /* INFO SECTION */
    .info-section {
        padding: 40px 16px;
    }

    .welcome-text {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .card-container {
        flex-direction: column;
        gap: 16px;
    }

    .card {
        padding: 30px 20px;
        min-height: auto;
    }
}