/* ========================================================
   OVERHAUL WP-LOGIN.PHP KE DESAIN 2 KOLOM (SPLIT SCREEN)
   ======================================================== */

/* 1. RESET WP CORE FLEXBOX (Mencegah form tergencet/hilang) */
body.login {
    display: block !important; /* Fix Utama! Mematikan Flexbox WP */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

body.login * {
    box-sizing: border-box;
}

/* Sembunyikan elemen clear bawaan WP */
body.login .clear {
    display: none !important;
}

/* ========================================================
   KOLOM KIRI (Injected HTML / Gambar & Teks)
   ======================================================== */
.hotnews-login-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background-color: #1a1a1a; /* Fallback dinamis dari customizer */
    z-index: 1;
}

.login-left-content {
    max-width: 550px;
    text-align: left;
}

/* ========================================================
   KOLOM KANAN (Form WP Bawaan)
   ======================================================== */
#login {
    margin-left: 50% !important; /* Memaksa pindah ke kanan */
    width: 50% !important;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 10% !important;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* 2. STYLING FORM MODERN (Menyerupai Bootstrap 5) */
body.login form {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
    margin-top: 20px;
}

body.login label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

/* Form Inputs */
body.login form .input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

body.login form .input:focus {
    background-color: #fff;
    border-color: #e84c3d;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(232, 76, 61, 0.25);
}

/* Tombol Login (Button) */
body.login .button-primary {
    width: 100%;
    background: #e84c3d !important;
    border-color: #e84c3d !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem !important;
    font-size: 1.1rem !important;
    border-radius: 0.25rem !important;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    height: auto !important;
    line-height: 1.5 !important;
    transition: background-color 0.3s;
}

body.login .button-primary:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

/* Link Navigasi (Lost Password & Back to Site) */
#nav, #backtoblog {
    margin: 1.5rem 0 0 0 !important;
    padding: 0 !important;
    text-align: left;
}

#nav a, #backtoblog a {
    color: #6c757d !important;
    text-decoration: none !important;
    font-size: 0.9rem;
}

#nav a:hover, #backtoblog a:hover {
    color: #e84c3d !important;
}

/* Pengalih Bahasa (Language Switcher) */
body.login .language-switcher {
    margin-top: 2rem;
    position: static;
    text-align: left;
}

/* WP Error / Success Messages */
body.login .message, body.login .success, body.login #login_error {
    border-left: 4px solid #e84c3d;
    border-radius: 0.25rem;
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

/* ========================================================
   RESPONSIVE MOBILE (Layar di bawah 991px)
   ======================================================== */
@media (max-width: 991px) {
    .hotnews-login-left {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 350px;
        padding: 4rem 2rem;
        z-index: 1;
    }

    .login-left-content {
        text-align: center;
        margin: 0 auto;
    }

    #login {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: auto;
        padding: 4rem 2rem !important;
    }

    #login h1 a {
        background-position: center !important;
    }
}