/* =========================================
   PENGATURAN DASAR
   ========================================= */
:root {
    --primary-blue: #24a1b0;    /* Warna Biru PaDi UMKM */
    --dark-blue: #1d828f;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #777777;
    --border-color: #dddddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary-blue); /* Latar belakang sesuai gambar login */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   KONTAINER UTAMA (LOGIN & DAFTAR)
   ========================================= */
.login-container {
    display: flex;
    width: 950px;
    height: 650px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Panel Kiri (Ilustrasi & Branding) */
.left-panel {
    flex: 1;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-white {
    width: 120px;
    margin-bottom: 30px;
}

.illustration-box img {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
}

.left-panel h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.left-panel p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Panel Kanan (Area Formulir) */
.right-panel {
    flex: 1.2;
    padding: 40px;
    background: var(--white);
    position: relative;
}

.header-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dark);
}

.logo-color {
    width: 100px;
}

/* =========================================
   STYLING FORMULIR & INPUT
   ========================================= */
.form-box h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--white);
}

.input-group input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

/* Mata Password */
.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 42px;
    cursor: pointer;
    color: var(--text-gray);
    z-index: 10;
}

/* =========================================
   LOGIKA TOMBOL (PENTING)
   ========================================= */
.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

/* Warna saat kosong / tidak valid */
.login-btn.disabled {
    background-color: #edeff2 !important;
    color: #a0a0a0 !important;
    cursor: not-allowed !important;
}

/* Warna saat input valid (Biru) */
.login-btn.active {
    background-color: var(--primary-blue) !important;
    color: white !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(36, 161, 176, 0.3);
}

.login-btn.active:hover {
    background-color: var(--dark-blue) !important;
}

/* =========================================
   LINK & FOOTER
   ========================================= */
.footer-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.divider {
    margin: 25px 0;
    border-bottom: 1px solid #eeeeee;
    line-height: 0.1em;
    text-align: center;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    color: #999;
}

/* Navigasi Titik di Panel Kiri */
.pagination-dots {
    margin-top: 25px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.dot.active {
    width: 24px;
    background: var(--white);
    border-radius: 10px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95%;
        height: auto;
    }
    .left-panel {
        display: none;
    }
    .right-panel {
        padding: 30px 20px;
    }
}