/* ==========================================================================
   SEHATI MASTER STYLE - NEO GLASSMORPHISM & 3D LUXURY (RESIZED & NATIVE MOBILE)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --kemenkes-green: #96c11f;
    --kemenkes-blue: #00a29a;
    --text-dark: #2c3e50;
    --bg-light: #e2e8f0;
}

/* === HARAMKAN SCROLLBAR SECARA GLOBAL TAPI TETAP BISA SCROLL === */
::-webkit-scrollbar { 
    display: none !important; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* KUNCI LAYAR UTAMA - NATIVE APP FEEL */
html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Haramkan scroll di luar layar */
    background: var(--bg-light);
}

#app-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #ffffff 0%, #e2e8f0 100%);
}

/* === MODAL OVERLAY === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* === KOTAK MODAL LANDING (DIPERKECIL & BISA SCROLL DI DALAM) === */
.landing-box {
    width: 90%;
    max-width: 900px; /* Diperkecil dari 1200px */
    max-height: 85vh; /* Membatasi tinggi agar tidak tembus layar */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px; /* Sudut lebih ramping */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    overflow-y: auto; /* Kunci rahasia: Konten dalam kotak bisa di-scroll jika panjang, tanpa scrollbar */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dual-tone {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 100%;
}

/* KIRI - IDENTITAS */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f6 100%);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

h1.sehati-title {
    font-size: 2.5rem; /* Diperkecil dari 4rem */
    font-weight: 800;
    margin-top: 5px;
    letter-spacing: 2px;
}
.text-se { color: var(--kemenkes-green); }
.text-hati { color: var(--kemenkes-blue); }

.sub-judul {
    font-size: 0.95rem; /* Diperkecil */
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 600;
}

/* KADIS INFO - GARIS KIRI ELEGAN (BUKAN KOTAK) */
.kadis-info {
    margin-top: 15px;
    padding: 10px 15px;
    background: transparent;
    border-left: 4px solid var(--kemenkes-green);
    text-align: left;
}

/* KANAN - FILOSOFI */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--kemenkes-blue) 0%, #00817b 100%);
    color: white;
}

.right-panel p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.quote-box {
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 15px;
    border-left: 4px solid var(--kemenkes-green);
    margin-top: 10px;
}

/* === LOGIN & REGISTER MODAL (DIPERKECIL) === */
.auth-box {
    width: 90%;
    max-width: 380px; /* Diperkecil dari 450px */
    max-height: 90vh; /* Cegah tembus layar HP */
    overflow-y: auto; /* Bisa di-scroll jika isinya panjang (seperti form daftar) */
    padding: 2rem; /* Diperkecil dari 3rem */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* === FORM 3D (UKURAN RAMPING) === */
.form-glass {
    width: 100%;
    padding: 12px 20px; /* Diperkecil */
    margin-bottom: 15px;
    border: none;
    border-radius: 30px; 
    background: #eef1f5;
    box-shadow: inset 4px 4px 8px #c8d0d8, inset -4px -4px 8px #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.form-glass:focus {
    box-shadow: inset 2px 2px 4px #c8d0d8, inset -2px -2px 4px #ffffff;
    border: 1px solid var(--kemenkes-blue);
    background: #ffffff;
}

/* === BUTTONS 3D (UKURAN RAMPING) === */
.btn-3d {
    width: 100%;
    padding: 12px 20px; /* Diperkecil */
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem; /* Diperkecil */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.btn-green {
    background: linear-gradient(145deg, #a1cf21, #87ad1c);
    box-shadow: 4px 4px 10px rgba(150, 193, 31, 0.3), -4px -4px 10px rgba(255,255,255,0.6);
}

.btn-blue {
    background: linear-gradient(145deg, #00ada5, #00918a);
    box-shadow: 4px 4px 10px rgba(0, 162, 154, 0.3), -4px -4px 10px rgba(255,255,255,0.6);
}

.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2), -2px -2px 5px rgba(255,255,255,0.5);
}

.tab-btn {
    width: 48%;
    padding: 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

/* === RESPONSIVE HP POSISI BERDIRI (FIX LAYAR / NATIVE MOBILE) === */
@media (max-width: 768px) {
    .landing-box {
        flex-direction: column;
        height: 90vh; /* Fix layar, tidak tembus bawah */
        border-radius: 20px;
    }
    .dual-tone { flex-direction: column; }
    .left-panel { padding: 2rem 1.5rem; }
    .right-panel { padding: 2rem 1.5rem; }
    
    h1.sehati-title { font-size: 2.2rem; }
    .logo-container img { max-height: 50px !important; }
    
    .auth-box { padding: 1.5rem; }
}

.hidden { display: none !important; }