/* ====================================================== */
/* 1. IMPORTS & SETUP DASAR */
/* ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* PENYESUAIAN: Palet Warna Premium Baru (Deep Green & Natural Tones) */
    --primary-color: #00695C; /* Hijau Tua yang Elegan (Teal) */
    --primary-hover: #004D40; /* Versi lebih gelap untuk hover */
    --accent-color: #26a69a;  /* Hijau lebih cerah untuk link */
    --text-dark: #2c3e50;      /* Abu-abu Gelap untuk Teks */
    --text-secondary: #7f8c8d; /* Abu-abu lebih terang */
    --border-color: #e0e0e0;
    --light-gray: #f9fafb;
    --danger-color: #d32f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
}

/* PERBAIKAN: Background statis, tema Lingkungan Hidup, dan tidak bergerak */
body {
    font-family: 'Poppins', sans-serif;
    background-image: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?q=80&w=1748&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Membuat background diam saat di-scroll */
}


/* ====================================================== */
/* 2. KONTAINER UTAMA & POSISI KARTU */
/* Menggunakan Flexbox untuk posisi yang presisi dan full screen. */
/* ====================================================== */

.login-container {
    min-height: 100vh; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: rgba(10, 20, 30, 0.3); /* Overlay untuk meningkatkan kontras */
}


/* ====================================================== */
/* 3. KARTU LOGIN (SOLID & MEWAH) */
/* Desain kartu yang bersih, tenang, dengan animasi halus. */
/* ====================================================== */
.auth-card-premium {
    width: 100%;
    max-width: 420px;
    padding: 45px 40px;
    background: linear-gradient(145deg, #ffffff, #f7f9fc); /* Gradasi putih yang sangat halus */
    border-radius: 16px;
    border: 1px solid #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    
    /* PERBAIKAN: Animasi masuk saja, tanpa animasi mengambang */
    animation: fade-in-up 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek terangkat yang halus saat disentuh mouse */
.auth-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Animasi saat kartu pertama kali muncul */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ====================================================== */
/* 4. HEADER, LOGO, & TEKS */
/* ====================================================== */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

/* PERBAIKAN: Ukuran logo diperbesar agar lebih presisi */
.logo-container img {
    height: 80px;
    width: 80px;
    border-radius: 8px;
}


.logo-container h2 {
    font-weight: 600;
    font-size: 22px;
    color: var(--text-dark);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ====================================================== */
/* 5. FORM & INPUT (BERSIH & INTERAKTIF) */
/* ====================================================== */
.input-group-premium {
    position: relative;
    margin-bottom: 5px;
    text-align: left;
}

.input-group-premium .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    transition: color 0.3s ease;
}

.input-group-premium input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.input-group-premium input::placeholder {
    color: #999;
}

/* Efek 'glow' disesuaikan dengan tema baru */
.input-group-premium input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.2);
    background-color: #fff;
}

.input-group-premium input:focus ~ .icon {
    color: var(--primary-color);
}

.password-toggle-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    cursor: pointer;
    z-index: 3;
}

/* ====================================================== */
/* 6. OPSI FORM & TOMBOL LOGIN */
/* ====================================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me-group label {
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color); /* Warna solid hijau tua */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 105, 92, 0.2);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 105, 92, 0.3);
}

/* ====================================================== */
/* 7. LINK & PESAN ERROR */
/* ====================================================== */
.switch-link {
    text-align: center;
    margin-top: 30px;
}

.switch-link p {
    color: var(--text-secondary);
}

.switch-link a {
    color: var(--accent-color); /* Menggunakan warna aksen hijau cerah */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.switch-link a:hover {
    color: var(--primary-color);
}

/* Style untuk pesan error di bawah input */
.input-error-message {
    color: var(--danger-color);
    font-size: 13px;
    padding: 6px 0 15px 5px;
    text-align: left;
    font-weight: 500;
}


/* ====================================================== */
/* 8. GAYA BARU: Untuk Tombol Aksi di Form */
/* ====================================================== */
.form-actions {
    display: flex;
    gap: 15px; /* Memberi jarak antara tombol "Kembali" dan "Daftar" */
    align-items: center;
}

/* Tombol Kembali (Gaya Sekunder/Outline) */
.btn-back {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color); /* Border abu-abu */
    border-radius: 10px;
    background: transparent; /* Latar belakang transparan */
    color: var(--text-secondary); /* Warna teks abu-abu */
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sedikit penyesuaian pada tombol login agar lebarnya sama */
.form-actions .btn-login {
    flex-grow: 1; /* Memastikan tombol ini mengambil ruang yang tersedia */
}
