/* CSS khusus untuk Halaman Login */
:root {
    --primary-color: #1c448d; /* Biru Tua */
    --accent-color: #35a32b; /* Hijau */
    --text-dark: #1f2937;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.login-page {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    /* Ganti path gambar latar belakang Anda */
    background-image: url("../images/bg.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Layer Overlay Blur dan Transparansi */
body.login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* MODIFIED: Background gelap dengan BLUR yang lebih kuat */
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* NEW: Style untuk Area Animasi (Awan dan Burung) */
.animated-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Di bawah overlay blur, di atas background */
    pointer-events: none;
    overflow: hidden;
}

.login-container {
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: fadeInScale 0.8s ease-out;
}

/* Animasi saat Halaman Dimuat */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 3px solid var(--primary-color);
    text-align: center;
}

/* Area Logo */
.logo-area img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}
.logo-area h1 {
    font-size: 1.6em;
    font-weight: 900;
    color: var(--primary-color);
    margin: 5px 0 0;
}
.logo-area p {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0 0 20px;
    font-weight: 500;
}
.divider {
    border: 0;
    height: 2px;
    background-image: linear-gradient(
        to right,
        #ccc,
        var(--accent-color),
        #ccc
    );
    margin: 15px 0 30px;
    opacity: 0.5;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.9em;
}
.form-group label i {
    margin-right: 5px;
    color: var(--accent-color);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(28, 68, 141, 0.3);
    outline: none;
}

/* Password Toggle Styling */
.password-wrapper {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}
.toggle-password:hover {
    color: var(--primary-color);
}

/* CAPTCHA Space Styling */
.captcha-space {
    margin-bottom: 20px;
    text-align: center;
}

/* Form Options (Remember Me & Forgot Password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9em;
}
.remember-me {
    cursor: pointer;
    color: var(--text-dark);
}
.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Tombol Login */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #2e8b24 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(53, 163, 43, 0.5);
    transition: all 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 163, 43, 0.6);
    filter: brightness(1.1);
}
.login-btn i {
    margin-right: 10px;
}

/* Pesan Error */
.error-message {
    color: #ef4444;
    font-size: 0.8em;
    margin-top: 5px;
    text-align: left;
    height: 1em;
}
input.error {
    border-color: #ef4444 !important;
}

/* Teks Support/Kaki */
.support-text {
    font-size: 0.8em;
    color: #999;
    margin-top: 25px;
}
.support-text i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* NEW: Styling Footer Login Page */
.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 10;
    position: relative;
    font-size: 0.9em;
}

.login-footer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-footer .made-with-love {
    margin-top: 5px;
    font-size: 0.85em;
}

.login-footer .made-with-love i {
    color: #ef4444;
    margin: 0 3px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsif */
@media (max-width: 500px) {
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    .login-btn {
        padding: 12px;
        font-size: 1em;
    }
    .login-footer {
        font-size: 0.8em;
    }
}
