/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f172a; /* Warna latar gelap (Dark Blue/Slate) */
    color: #ffffff;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(15, 23, 42, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #10b981; /* Warna Hijau RuangOTP */
}

.btn-login-trigger {
    background-color: #1f2937;
    color: #10b981;
    border: 1px solid #10b981;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login-trigger:hover {
    background-color: #10b981;
    color: white;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #10b981;
}

.hero-desc {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.btn-cta {
    background-color: #10b981;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: scale(1.05);
}

/* MODAL / POPUP STYLES (Penting!) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Latar belakang redup */
    display: none; /* Tersembunyi secara default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Class ini ditambahkan lewat JS saat modal aktif */
.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1e293b;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    border: 1px solid #334155;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 18px;
    color: #fff;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
}

/* TABS (Login, Register, Update) */
.tabs {
    display: flex;
    background-color: #0f172a;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
}

.tab-btn.active {
    background-color: #10b981;
    color: white;
}

/* FORM FIELDS */
.auth-form {
    display: none; /* Sembunyikan semua form */
    flex-direction: column;
    gap: 15px;
}

.auth-form.active-form {
    display: flex; /* Tampilkan form yang dipilih */
}

label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

input {
    background-color: #334155;
    border: 1px solid #475569;
    padding: 12px;
    border-radius: 6px;
    color: white;
    outline: none;
}

input:focus {
    border-color: #10b981;
}

/* Simulasi Cloudflare Widget */
.cloudflare-box {
    background-color: #252525;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ddd;
}

.cf-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #10b981;
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-submit {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #059669;
}

/* Responsif untuk HP */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .modal-content { width: 90%; }
}
