/* --- 8. STYLES KHUSUS UNTUK HALAMAN LOGIN (GAYA MINIMALIS PEGADAIAN - NON-SSO) --- */

/* Variabel Warna Tambahan untuk Desain Ini (Jika Belum Ada) */
:root {
    --login-primary-color: #007bff; /* Biru Primer */
    --login-bg-dark: #0056b3; /* Biru Gelap Ilustrasi */
}


body.login-body-peg {
    background-color: #f8f9fa; /* Latar belakang abu-abu sangat muda */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.login-container-main {
    display: flex;
    width: 90%;
    max-width: 1100px;
    height: 650px; /* Tinggi Tetap */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: white;
}

/* --- Panel Kiri (Ilustrasi & Teks) --- */
.login-left-panel {
    flex: 1.2; /* Ambil lebih banyak ruang untuk panel kiri */
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--login-bg-dark); /* Warna dasar biru gelap */
}

/* Ilustrasi Geometris (Menggunakan Pseudo-element dan Clip-path) */
.login-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradien untuk efek kedalaman */
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.9));
    z-index: 1;
}

/* Placeholder Ilustrasi Gambar */
.login-left-panel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* Ganti URL ini dengan URL Ilustrasi Bertema Biru Anda */
    background: url('https://i.ibb.co/L5w2R72/login-illustration-blue.png') no-repeat center center / contain;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.2; /* Tampilan sedikit transparan di belakang teks */
    z-index: 2;
}


.login-logo-header, .login-text-content {
    position: relative;
    z-index: 3;
}

.login-logo-header {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 50px;
}

.login-logo-header i {
    margin-right: 10px;
}

.login-main-title {
    font-size: 2.8em;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 1em;
    font-weight: 300;
    max-width: 80%;
}


/* --- Panel Kanan (Formulir) --- */
.login-right-panel {
    flex: 1;
    padding: 50px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.login-form-card {
    width: 100%;
    max-width: 350px;
    text-align: left;
}

.login-form-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form-group label i {
    margin-right: 8px;
    color: var(--login-primary-color);
}

.login-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.login-form-group input:focus {
    border-color: var(--login-primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Password Toggle */
.password-input-wrapper {
    position: relative;
}
.password-input-wrapper input {
    padding-right: 40px;
}
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9em;
}

/* Captcha Styling */
.captcha-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.captcha-code {
    background-color: #e9ecef; /* Latar belakang Captcha */
    color: #333;
    font-family: monospace;
    font-size: 1.3em;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 6px;
    letter-spacing: 2px;
    user-select: none;
    flex-shrink: 0;
}

.refresh-captcha {
    color: var(--login-primary-color);
    cursor: pointer;
    font-size: 1.1em;
    flex-shrink: 0;
}

.captcha-wrapper input {
    flex-grow: 1;
    min-width: 150px;
}

/* Actions & Buttons */
.login-actions-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    margin-bottom: 25px;
}

.forgot-password-link, .need-help-link {
    color: var(--login-primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.need-help-link {
    color: #6c757d;
}

.forgot-password-link:hover, .need-help-link:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1.05em;
    font-weight: 600;
    background-color: var(--login-primary-color);
    border: none;
    border-radius: 6px;
    color: white;
}

.login-footer-text {
    font-size: 0.75em;
    color: #adb5bd;
    text-align: center;
    margin-top: 50px;
}

/* Media Queries (Responsif) */
@media (max-width: 992px) {
    .login-container-main {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-width: 500px;
    }

    .login-left-panel {
        padding: 30px;
        border-radius: 12px 12px 0 0;
        min-height: 250px;
    }
    
    .login-left-panel::before, .login-left-panel::after {
        border-radius: 12px 12px 0 0;
    }
    
    .login-right-panel {
        padding: 30px 20px;
        border-radius: 0 0 12px 12px;
    }
    
    .login-main-title {
        font-size: 2em;
    }
    
    .login-logo-header {
        margin-bottom: 20px;
    }
    
    .login-footer-text {
        margin-top: 20px;
    }
    
    .captcha-wrapper input {
        width: 100%;
        margin-top: 10px;
    }
}