/* ==========================================================
   Login Custom Style - Sistem Informasi Absensi PPA
   Dibangun di atas SB Admin 2 (Bootstrap 4, CI3)
   ========================================================== */

html, body.login-page-body {
    height: 100%;
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b3d6b;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* =========================
   SISI KIRI - HERO / BRANDING
   ========================= */
.login-hero {
    position: relative;
    flex: 1 1 55%;
    background: linear-gradient(135deg, #0d4f8b 0%, #123f6e 60%, #0a2f52 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Pola grid kotak-kotak transparan di background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 100px 100px;
    -webkit-mask-image: radial-gradient(circle at 20% 30%, black 40%, transparent 85%);
            mask-image: radial-gradient(circle at 20% 30%, black 40%, transparent 85%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 70px;
    color: #ffffff;
    max-width: 620px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #8fc4ff;
    margin-bottom: 70px;
}

.hero-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-feature-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #eaf3ff;
    margin-bottom: 22px;
}

.hero-feature-list .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    margin-right: 14px;
    font-size: 0.95rem;
    color: #ffffff;
}

/* =========================
   SISI KANAN - FORM LOGIN
   ========================= */
.login-form-side {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f4a80; /* fallback jika area kanan tetap gelap */
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 18px;
    background: #ffffff;
}

.login-title {
    font-weight: 800;
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.login-subtitle {
    color: #6c7684;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.login-card label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a1a2e;
}

.form-control-user {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #dfe3e8;
}

.form-control-user:focus {
    border-color: #0d4f8b;
    box-shadow: 0 0 0 0.2rem rgba(13, 79, 139, 0.15);
}

.forgot-link {
    color: #0d4f8b;
    font-weight: 600;
    text-decoration: none;
}

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

.btn-login {
    background-color: #123f6e;
    border-color: #123f6e;
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: background-color 0.15s ease-in-out;
}

.btn-login:hover,
.btn-login:focus {
    background-color: #0d3357;
    border-color: #0d3357;
    color: #ffffff;
}

.demo-hint {
    font-size: 0.85rem;
    color: #6c7684;
}

.demo-hint code {
    background: #f1f3f5;
    color: #123f6e;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 700;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991.98px) {
    .login-wrapper {
        flex-direction: column;
    }
    .login-hero {
        flex: none;
        padding: 40px 0;
    }
    .hero-content {
        padding: 40px 30px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        margin-bottom: 30px;
    }
    .login-form-side {
        flex: none;
        padding: 30px 20px 60px;
    }
}
