/* ==========================================================================
   Halaman Login (Form Kanan & Banner Kiri - Modern Split Style)
   ========================================================================== */

/* Reset & Body (Khusus halaman login) */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.login-layout {
    display: flex;
    min-height: 100vh;
    background-color: #ffffff;
}

/* --- BAGIAN KIRI (Gambar Background / Banner) --- */
.login-banner {
    flex: 1;
    /* Mengambil sisa ruang penuh di sisi kiri */
    position: relative;
    background-color: #f3f4f6;
    display: flex;
    align-items: flex-end;
    /* Memosisikan teks banner di sudut bawah */
    padding: 60px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradien overlay medis: biru-hijau tosca transparan ke hitam pekat di bawah */
    background: linear-gradient(to bottom, rgba(26, 115, 232, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
}

.banner-text {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 520px;
}

.banner-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.banner-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* --- BAGIAN KANAN (Form Area) --- */
.login-sidebar {
    width: 100%;
    max-width: 540px;
    /* Lebar proporsional untuk area kanan */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
    border-left: 1px solid var(--border, #e5e7eb);
}

.login-sidebar-inner {
    width: 100%;
    max-width: 380px;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 45px;
}

.brand-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark, #202124);
    letter-spacing: -0.5px;
}

.brand-text span {
    color: var(--primary, #1a73e8);
}

.login-header {
    margin-bottom: 32px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.3;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* --- FORM ELEMENTS --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14.5px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #111827;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary, #1a73e8);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.remember-label {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    color: #4b5563;
    cursor: pointer;
    gap: 8px;
}

.remember-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--primary, #1a73e8);
    cursor: pointer;
}

.forgot-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary, #1a73e8);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary, #1a73e8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-bottom: 24px;
}

.btn-submit:hover {
    background-color: var(--primary-dark, #1557b0);
}

.btn-submit:active {
    transform: scale(0.99);
}

.login-footer {
    text-align: center;
    font-size: 13.5px;
    color: #6b7280;
}

.login-footer a {
    color: var(--primary, #1a73e8);
    font-weight: 700;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE ADJUSTMENT --- */
@media (max-width: 900px) {
    .login-banner {
        display: none;
        /* Sembunyikan gambar latar belakang pada device mobile/tablet kecil */
    }

    .login-sidebar {
        max-width: 100%;
        border-left: none;
        padding: 30px 20px;
    }

    .login-sidebar-inner {
        max-width: 100%;
    }
}