/* Halaman login Lamsama */
:root {
    --blue-primary: #477fba;
    --blue-dark: #244c78;
    --blue-soft: #eaf3fc;
    --blue-light: #f4f8fd;
    --text-dark: #263c56;
    --text-muted: #7d8da1;
    --border-color: #e5edf6;
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: #edf4fc;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    background:
        radial-gradient(circle at 10% 10%,
            rgba(180, 214, 247, .55), transparent 35%),
        radial-gradient(circle at 90% 90%,
            rgba(199, 222, 247, .65), transparent 35%),
        linear-gradient(135deg, #f5f9ff 0%, #eaf3fc 100%);
}

.login-container {
    width: 100%;
    max-width: 1120px;
    min-height: 640px;
    display: flex;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(54, 91, 135, .13);
}

/* =========================
   BAGIAN KIRI
========================= */

.login-info {
    position: relative;
    width: 55%;
    padding: 55px 52px 35px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%,
            rgba(255,255,255,.65), transparent 27%),
        linear-gradient(145deg, #e9f3ff 0%, #dcecff 55%, #edf5ff 100%);
}

.login-info:before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    right: -115px;
    bottom: -100px;
}

.login-info:after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 24px solid rgba(255,255,255,.25);
    right: 25px;
    top: 210px;
}

.info-content {
    position: relative;
    z-index: 2;
}

.brand-label {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border-radius: 30px;
    background: rgba(255,255,255,.75);
    color: var(--blue-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(71,127,186,.06);
}

.brand-label i {
    margin-right: 8px;
    font-size: 15px;
}

.info-title {
    margin: 28px 0 17px;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 750;
    color: var(--blue-dark);
}

.info-description {
    max-width: 470px;
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 1.9;
    color: #617994;
}

.section-heading {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-dark);
}

.section-heading i {
    margin-right: 9px;
    color: var(--blue-primary);
}

.workflow {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow:before {
    content: "";
    position: absolute;
    left: 19px;
    top: 23px;
    bottom: 27px;
    width: 2px;
    background: #c5d9f0;
}

.workflow-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.workflow-item:last-child {
    margin-bottom: 0;
}

.workflow-number {
    position: relative;
    z-index: 1;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #fff;
    color: var(--blue-primary);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #d8e7f7;
    box-shadow: 0 4px 12px rgba(60, 105, 158, .08);
}

.workflow-text {
    padding: 3px 0 0 15px;
}

.workflow-text h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    color: #315779;
}

.workflow-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #7b91a9;
}

.info-footer {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(110, 153, 199, .2);
    font-size: 11px;
    line-height: 1.7;
    color: #8298b0;
}

/* =========================
   BAGIAN KANAN
========================= */

.login-panel {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 48px;
    background: #fff;
}

.login-content {
    width: 100%;
    max-width: 360px;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 27px;
}

.logo-wrapper img {
    display: inline-block;
    max-width: 190px;
    max-height: 115px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-heading {
    margin: 0 0 10px;
    text-align: center;
    color: var(--blue-dark);
    font-size: 25px;
    font-weight: 750;
}

.login-subtitle {
    margin-bottom: 30px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
}

.alert-login {
    padding: 12px 14px;
    margin-bottom: 22px;
    border: 1px solid #f4d5d8;
    border-radius: 10px;
    background: #fff5f5;
    color: #bd515b;
    font-size: 12px;
    line-height: 1.6;
}

.alert-login i {
    margin-right: 7px;
}

.form-group {
    margin-bottom: 21px;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #405873;
}

.input-group-custom {
    position: relative;
}

.input-group-custom .input-icon {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 16px;
    height: 48px;
    display: flex;
    align-items: center;
    color: #91a6bf;
    font-size: 16px;
}

.input-group-custom .form-control {
    height: 48px;
    padding: 10px 15px 10px 45px;
    border: 1px solid var(--border-color);
    border-radius: 11px !important;
    background: #f9fbfe;
    color: #344b65;
    font-size: 13px;
    box-shadow: none;
    transition: all .2s ease;
}

.input-group-custom .form-control::placeholder {
    color: #a6b4c5;
}

.input-group-custom .form-control:focus {
    border-color: #8bb6e6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(71,127,186,.09);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 25px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #8292a5;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.remember-label input {
    margin: 0 8px 0 0;
    accent-color: var(--blue-primary);
}

.login-button {
    width: 100%;
    height: 49px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #659bd2, #477fba);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 8px 18px rgba(71,127,186,.22);
    transition: all .2s ease;
}

.login-button:hover,
.login-button:focus {
    background: linear-gradient(135deg, #528bc7, #356fae);
    color: #fff;
    box-shadow: 0 10px 23px rgba(71,127,186,.3);
    transform: translateY(-1px);
}

.login-button i {
    margin-left: 8px;
}

.security-note {
    margin-top: 25px;
    text-align: center;
    color: #9aa9ba;
    font-size: 11px;
    line-height: 1.8;
}

.security-note i {
    margin-right: 5px;
    color: #7da8d5;
}

.copyright {
    margin-top: 30px;
    text-align: center;
    font-size: 11px;
    color: #a1adbb;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .login-container {
        max-width: 760px;
    }

    .login-info {
        width: 50%;
        padding: 42px 30px 30px;
    }

    .login-panel {
        width: 50%;
        padding: 40px 30px;
    }

    .info-title {
        font-size: 27px;
    }
}

@media (max-width: 767px) {
    .login-wrapper {
        padding: 15px;
        align-items: flex-start;
    }

    .login-container {
        display: flex;
        flex-direction: column;
        max-width: 480px;
        border-radius: 18px;
    }

    .login-info,
    .login-panel {
        width: 100%;
    }

    .login-info {
        padding: 32px 25px;
    }

    .info-title {
        margin-top: 22px;
        font-size: 26px;
    }

    .info-description {
        margin-bottom: 25px;
    }

    .workflow-item {
        margin-bottom: 16px;
    }

    .info-footer {
        margin-top: 25px;
    }

    .login-panel {
        padding: 38px 25px;
    }

    .logo-wrapper img {
        max-width: 160px;
        max-height: 95px;
    }

    .login-heading {
        font-size: 23px;
    }
}

@media (max-width: 360px) {
    .login-info,
    .login-panel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .info-title {
        font-size: 23px;
    }
}

/* Tambahan BS5 + CAPTCHA */
.form-group { margin-bottom: 21px; }
.workflow-text h4 { line-height: 1.4; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .captcha-img { height: 48px; border-radius: 11px; border: 1px solid var(--border-color); background: #f9fbfe; }
.captcha-row .btn-refresh { width: 48px; height: 48px; border-radius: 11px; border: 1px solid var(--border-color); background: #f9fbfe; color: var(--blue-primary); }
.captcha-row .btn-refresh:hover { background: var(--blue-soft); }
.input-group-custom .toggle-pass { position: absolute; z-index: 3; top: 0; right: 12px; height: 48px; display: flex; align-items: center; color: #91a6bf; background: none; border: 0; }
.input-group-custom .form-control.has-toggle { padding-right: 42px; }
.alert-login.alert-warning-soft { border-color: #f3e2b8; background: #fffaf0; color: #9a6b12; }
