/*==================================================
RESET & GENERAL
==================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #F7F6F2;
    color: #334155;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*==================================================
LAYOUT CONTAINER
==================================================*/
.login-page {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: #F7F6F2;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(29, 121, 1, 0.082);
    border: 1px solid #EAEAEA;
    width: 100%;
    max-width: 960px;
    display: flex;
    overflow: hidden;
}

/*==================================================
LEFT SIDE: ILUSTRASI / GAMBAR (Latar Belakang Hijau)
==================================================*/
.login-left {
    flex: 1;
    background: #F7F6F2; /* Warna hijau muda pastel serasi */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-right: 1px solid #eef3ee;
}

.login-left img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Membantu menghilangkan sisa latar putih bawaan gambar jika berupa PNG/JPEG transparan */
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/*==================================================
RIGHT SIDE: FORM KONTEN
==================================================*/
.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

/*==================================================
LOGO AREA (Diperbesar & Tetap Presisi di Tengah)
==================================================*/
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;               /* Jarak sedikit diperlebar agar seimbang */
    margin-bottom: 20px;
    text-align: center;
}

/* Ukuran Icon Paru-paru diperbesar */
.logo-area i {
    font-size: 48px;         /* Sebelumnya 34px -> diperbesar ke 48px */
    color: #2E7D32;
    line-height: 1;
}

/* Ukuran Teks "Sistem Pakar ISPA" diperbesar */
.logo-area h5 {
    font-size: 20px;         /* Sebelumnya 16px -> diperbesar ke 20px */
    font-weight: 700;
    color: #1E5E20;
    margin: 0;
    line-height: 1.2;
}

/* Ukuran Teks Sub-judul "pada Balita" diperbesar */
.logo-area span {
    font-size: 14px;         /* Sebelumnya 12px -> diperbesar ke 14px */
    color: #666666;
    font-weight: 500;
    display: block;
}

/* HEADING */
.login-right h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1E5E20;
    margin-bottom: 6px;
   
}

.login-right p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 28px;
   
}

/* FORM CONTROL & LABELS */
label {
    font-size: 13px;
    font-weight: 600;
    color: #1E5E20;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
    outline: none;
}

/* INPUT GROUP (TOGGLE PASSWORD) */
.input-group {
    position: relative;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    background-color: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s;
}

.input-group-text:hover {
    color: #2E7D32;
}

.input-group:focus-within .input-group-text {
    border-color: #2E7D32;
}

/* LUPA PASSWORD & LINK REGISTER */
.forgot-link {
    font-size: 13px;
    color: #2E7D32;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1E5E20;
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666666;
}

.register-link a {
    color: #2E7D32;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    color: #1E5E20;
    text-decoration: underline;
}

/* BUTTON LOGIN */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #2E7D32;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background-color: #236628;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

/* ALERT ERROR CUSTOM */
.alert-danger {
    background-color: #FFEBEE;
    border-color: #FFCDD2;
    color: #C62828;
    border-radius: 10px;
    font-size: 13px;
}

/*==================================================
RESPONSIVE DESIGN
==================================================*/
@media (max-width: 850px) {
    .login-card {
        flex-direction: column;
        max-width: 480px;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 40px 28px;
    }
}