/* --- ROOT VARIABLES (Sudah Diubah ke Tema Hijau Dia Homecare) --- */
:root {
    --primary: #224c38;             /* Hijau Utama Dia Homecare */
    --primary-hover: #1b3d2d;       /* Hijau Lebih Tua Saat Hover */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --bg-gradient: linear-gradient(135px, #f0fdf4 0%, #fffde7 100%); /* Gradasi hijau-kuning lembut */
}

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

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container pembungkus utama */
.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

/* Kotak Login Box Putih */
.login-container {
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(34, 76, 56, 0.05), 0 5px 15px rgba(34, 76, 56, 0.02);
    border: 1px solid #e2e8f0;
    width: 100%;
}

/* Bagian Header Form */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

/* Logo Dia Homecare */
.logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 15px auto; 
    display: block;
}

.login-header h2 {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
}

.login-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* Pengaturan Grup Input Form */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group label i {
    margin-right: 4px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

/* Efek fokus saat input diklik (Mengikuti warna tema baru) */
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(34, 76, 56, 0.12);
}

/* Tombol Masuk Utama */
.btn-login-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(34, 76, 56, 0.15);
    margin-top: 10px;
}

.btn-login-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(34, 76, 56, 0.2);
}

.btn-login-submit:active {
    transform: translateY(1px);
}

/* Tombol Kembali Ke Portal */
.btn-kembali-portal {
    display: block;
    text-align: center;
    margin-top: 24px; 
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-kembali-portal:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* CSS MODAL POP-UP MODERN & UNIK */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-popup-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(34, 76, 56, 0.15);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 6px solid var(--primary);
}

.custom-popup-overlay.active .custom-popup-box {
    transform: scale(1);
}

.popup-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #e8f5e9;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 20px auto;
}

.popup-icon-wrapper.error-type {
    background: #ffebee;
    color: #c62828;
}

.custom-popup-box h3 {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.custom-popup-box p {
    font-family: 'Inter', sans-serif;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-popup-confirm {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(34, 76, 56, 0.2);
}

.btn-popup-confirm:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-popup-confirm.error-type {
    background: #c62828;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.2);
}
.btn-popup-confirm.error-type:hover {
    background: #b71c1c;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
}

/* Styling Tautan Teks Minimalis Dia Homecare */
.text-link-minimal {
    color: #718096; /* Abu-abu lembut */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.text-link-minimal:hover {
    color: #224c38;
    text-decoration: underline;
}

/* BACKGROUND THEME: FOTO KEHANGATAN KELUARGA DENGAN OVERLAY */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Background form login url */
    background-image: url('../images/mt fuji.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 2. LAPISAN OVERLAY FORM */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Memberikan lapisan filter hijau sage tua transparan bercampur krem di atas foto */
    background: linear-gradient(135deg, rgba(34, 76, 56, 0.7) 0%, rgba(253, 251, 247, 0.65) 100%);
    /* Memberikan efek blur tipis pada foto latar agar fokus mata user tetap ke form login */
    backdrop-filter: blur(3px); 
    z-index: 0;
}

/* STYLING KARTU LOGIN (POP-UP BACKGROUND FOTO) */
.login-card {
    background: rgba(255, 255, 255, 0.95); /* Sedikit transparan mewah */
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1; /* Memastikan form berada di atas lapisan overlay foto */
}