/* =========================================================
   UNITAF LOGIN - REFINED
   Visual only. Login flow, AJAX, CSRF, route and validation
   remain unchanged.
   ========================================================= */

* {
    box-sizing: border-box;
}

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

body.login {
    margin: 0;
    color: #3f5058;
    background: #6a9bb4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    padding: 38px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #6f9fac 0%, #6699cf 100%);
}

.login-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login_wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 !important;
}

.login_wrapper .login_form {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 !important;
}

.login-card {
    width: 100%;
    padding: 24px;
    background: #f7f8f8;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 3px;
    box-shadow: 0 14px 38px rgba(26, 56, 70, .16);
    text-align: left;
}

.login-identity {
    position: relative;
    min-height: 122px;
    margin: 0 0 28px;
    padding: 22px 142px 22px 24px;
    display: flex;
    align-items: center;
    color: #fff;
    background: #9fa3a2;
    border-radius: 2px;
}

.login-identity-copy {
    min-width: 0;
    text-align: left;
}

.login-identity-copy span,
.login-identity-copy strong,
.login-identity-copy small {
    display: block;
}

.login-identity-copy span {
    margin-bottom: 1px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.login-identity-copy strong {
    max-width: 190px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.24;
}

.login-identity-copy small {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.login-logo-wrap {
    position: absolute;
    top: -16px;
    right: 22px;
    width: 118px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d5d9da;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
}

.login-logo-wrap img {
    width: 94px;
    height: 94px;
    object-fit: contain;
}

.login-body {
    padding: 0 2px;
}

.login-heading {
    margin: 0 0 22px;
    text-align: center;
}

.login-heading h1,
.login-instruction {
    margin: 0;
    color: #627d99;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    text-shadow: none;
}

.login-heading p {
    margin: 7px 0 0;
    color: #8a989f;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
}

.login-field {
    margin: 0 0 17px;
}

.login-field label {
    display: block;
    margin: 0 0 7px;
    color: #586a72;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.login-input-wrap {
    position: relative;
    width: 100%;
}

.login-input-icon {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 43px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #87969d;
    pointer-events: none;
}

.login_content .form-control,
.login-content .form-control {
    width: 100%;
    height: 44px;
    margin: 0 !important;
    padding: 9px 13px 9px 43px;
    color: #33464e;
    background: #fff;
    border: 1px solid #cbd5d9;
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
    line-height: 24px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.login_content .form-control::placeholder,
.login-content .form-control::placeholder {
    color: #9aa5aa;
    opacity: 1;
}

.login_content .form-control:focus,
.login-content .form-control:focus {
    outline: none;
    border-color: #6295b9;
    box-shadow: 0 0 0 3px rgba(74, 134, 176, .12);
}

.login_content .form-control:focus + span,
.login-content .form-control:focus + span {
    color: #397fae;
}

.login_content .btn-primary,
.login-content .btn-primary {
    width: 100%;
    height: 44px;
    margin: 5px 0 0 !important;
    padding: 9px 16px;
    color: #fff;
    background: #347fb7;
    border: 1px solid #347fb7;
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    text-shadow: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.login_content .btn-primary:hover,
.login_content .btn-primary:focus,
.login-content .btn-primary:hover,
.login-content .btn-primary:focus {
    color: #fff;
    background: #2e70a2;
    border-color: #2e70a2;
    outline: none;
}

.login_content .btn-primary:active,
.login-content .btn-primary:active {
    background: #28638f;
    border-color: #28638f;
}

.error-alert {
    width: 100%;
}

.error-alert .alert {
    position: relative;
    margin: 0 0 16px;
    padding: 10px 34px 10px 12px;
    color: #91423f;
    background: #fdf0ef;
    border: 1px solid #eccdca;
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: left;
    text-shadow: none;
}

.error-alert .alert .close {
    position: absolute;
    top: 7px;
    right: 9px;
    color: #91423f;
    opacity: .7;
}

.login-footer {
    margin: 25px 0 0;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #778994;
    border-top: 1px solid #e3e7e9;
    font-size: 11.5px;
    line-height: 1.4;
    text-align: center;
}

.login-footer strong,
.login-footer b {
    font-weight: 700;
}

.login-footer-dot {
    color: #b1bcc1;
}

@media (max-width: 480px) {
    .login-page {
        padding: 22px 12px;
        align-items: flex-start;
    }

    .login_wrapper {
        max-width: 390px;
    }

    .login-card {
        padding: 18px 16px 22px;
    }

    .login-identity {
        min-height: 108px;
        margin-bottom: 24px;
        padding: 18px 112px 18px 17px;
    }

    .login-logo-wrap {
        top: -10px;
        right: 14px;
        width: 94px;
        height: 96px;
    }

    .login-logo-wrap img {
        width: 77px;
        height: 77px;
    }

    .login-identity-copy span {
        font-size: 15px;
    }

    .login-identity-copy strong {
        max-width: 145px;
        font-size: 14px;
    }

    .login-identity-copy small {
        margin-top: 4px;
        font-size: 12px;
    }

    .login-heading {
        margin-bottom: 18px;
    }

    .login-heading h1,
    .login-instruction {
        font-size: 17px;
    }

    .login-heading p {
        font-size: 12px;
    }

    .login-field {
        margin-bottom: 15px;
    }

    .login-footer {
        margin-top: 22px;
        font-size: 11px;
    }
}

@media (max-width: 350px) {
    .login-identity {
        padding-right: 96px;
    }

    .login-logo-wrap {
        width: 82px;
        height: 86px;
    }

    .login-logo-wrap img {
        width: 68px;
        height: 68px;
    }
}


/* =========================================================
   LOGIN FINAL FIX
   Hilangkan garis dekoratif bawaan Gentelella
   ========================================================= */

/* Hapus garis/pseudo-element bawaan login */
body.login .login_wrapper .login_form::before,
body.login .login_wrapper .login_form::after,
body.login .login_form::before,
body.login .login_form::after,
body.login .login_content::before,
body.login .login_content::after,
body.login .login-card::before,
body.login .login-card::after {
    content: none !important;
    display: none !important;

    width: 0 !important;
    height: 0 !important;

    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
}


/* =========================================================
   LOGIN WRAPPER
   ========================================================= */

body.login .login_wrapper {
    width: 100% !important;
    max-width: 430px !important;

    margin: 0 auto !important;
}

body.login .login_wrapper .login_form {
    position: static !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* =========================================================
   CARD
   ========================================================= */

body.login .login-card {
    position: relative !important;

    width: 100% !important;

    padding: 24px !important;

    background: #f7f8f8 !important;

    border: 1px solid rgba(255, 255, 255, .86) !important;
    border-radius: 4px !important;

    box-shadow: 0 14px 38px rgba(26, 56, 70, .14) !important;

    overflow: visible !important;
}


/* =========================================================
   AREA IDENTITAS
   ========================================================= */

body.login .login-identity {
    position: relative !important;

    min-height: 122px !important;

    margin: 0 0 28px !important;

    padding:
        22px
        142px
        22px
        24px !important;

    display: flex !important;

    align-items: center !important;

    color: #fff !important;
    background: #9fa3a2 !important;

    border: 0 !important;
    border-radius: 3px !important;

    box-shadow: none !important;
}


/* =========================================================
   LOGO
   ========================================================= */

body.login .login-logo-wrap {
    position: absolute !important;

    z-index: 10 !important;

    top: -18px !important;
    right: 22px !important;

    width: 118px !important;
    height: 116px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: #fff !important;

    border: 1px solid #d5d9da !important;
    border-radius: 4px !important;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .10) !important;
}

body.login .login-logo-wrap::before,
body.login .login-logo-wrap::after {
    content: none !important;
    display: none !important;
}

body.login .login-logo-wrap img {
    position: relative !important;

    z-index: 11 !important;

    display: block !important;

    width: 94px !important;
    height: 94px !important;

    margin: 0 !important;

    border: 0 !important;

    object-fit: contain !important;
}


/* =========================================================
   TEXT IDENTITAS
   ========================================================= */

body.login .login-identity-copy {
    position: relative !important;

    z-index: 2 !important;

    min-width: 0 !important;

    text-align: left !important;
}

body.login .login-identity-copy span,
body.login .login-identity-copy strong,
body.login .login-identity-copy small {
    display: block !important;

    margin-left: 0 !important;

    color: #fff !important;

    text-align: left !important;
    text-shadow: none !important;
}

body.login .login-identity-copy span {
    margin-bottom: 2px !important;

    font-size: 18px !important;
    font-weight: 600 !important;

    line-height: 1.25 !important;
}

body.login .login-identity-copy strong {
    max-width: 190px !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    line-height: 1.25 !important;
}

body.login .login-identity-copy small {
    margin-top: 5px !important;

    font-size: 14px !important;
    font-weight: 500 !important;

    line-height: 1.25 !important;
}


/* =========================================================
   BODY LOGIN
   ========================================================= */

body.login .login-body {
    position: relative !important;

    padding: 0 2px !important;

    border: 0 !important;
}


/* =========================================================
   HEADING
   ========================================================= */

body.login .login-heading {
    margin: 0 0 22px !important;

    text-align: center !important;
}

body.login .login-heading h1 {
    margin: 0 !important;

    color: #627d99 !important;

    font-size: 19px !important;
    font-weight: 500 !important;

    line-height: 1.35 !important;

    text-align: center !important;
    text-shadow: none !important;
}

body.login .login-heading p {
    margin: 7px 0 0 !important;

    color: #8a989f !important;

    font-size: 12.5px !important;
    font-weight: 400 !important;

    line-height: 1.45 !important;

    text-align: center !important;
}


/* =========================================================
   INPUT
   ========================================================= */

body.login .login-field {
    margin: 0 0 17px !important;
}

body.login .login-field label {
    display: block !important;

    margin: 0 0 7px !important;

    color: #586a72 !important;

    font-size: 12.5px !important;
    font-weight: 600 !important;

    text-align: left !important;
}

body.login .login-input-wrap {
    position: relative !important;

    width: 100% !important;
}

body.login .login-input-icon {
    position: absolute !important;

    z-index: 2 !important;

    top: 0 !important;
    left: 0 !important;

    width: 43px !important;
    height: 44px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    color: #87969d !important;

    pointer-events: none !important;
}

body.login .login_content .form-control {
    width: 100% !important;
    height: 44px !important;

    margin: 0 !important;

    padding: 9px 13px 9px 43px !important;

    color: #33464e !important;
    background: #fff !important;

    border: 1px solid #cbd5d9 !important;
    border-radius: 4px !important;

    box-shadow: none !important;

    font-size: 14px !important;
}

body.login .login_content .form-control:focus {
    outline: none !important;

    border-color: #6295b9 !important;

    box-shadow:
        0 0 0 3px
        rgba(74, 134, 176, .12) !important;
}


/* =========================================================
   BUTTON
   ========================================================= */

body.login .login_content .btn-primary {
    width: 100% !important;
    height: 44px !important;

    margin: 5px 0 0 !important;
    padding: 9px 16px !important;

    color: #fff !important;
    background: #347fb7 !important;

    border: 1px solid #347fb7 !important;
    border-radius: 4px !important;

    box-shadow: none !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-shadow: none !important;
}

body.login .login_content .btn-primary:hover,
body.login .login_content .btn-primary:focus {
    color: #fff !important;

    background: #2e70a2 !important;
    border-color: #2e70a2 !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

body.login .login-footer {
    margin: 25px 0 0 !important;

    padding-top: 17px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex-wrap: wrap !important;

    gap: 6px !important;

    color: #778994 !important;

    border-top: 1px solid #e3e7e9 !important;

    font-size: 11.5px !important;

    text-align: center !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    body.login .login-card {
        padding: 18px 16px 22px !important;
    }

    body.login .login-identity {
        min-height: 108px !important;

        margin-bottom: 24px !important;

        padding:
            18px
            112px
            18px
            17px !important;
    }

    body.login .login-logo-wrap {
        top: -10px !important;
        right: 14px !important;

        width: 94px !important;
        height: 96px !important;
    }

    body.login .login-logo-wrap img {
        width: 77px !important;
        height: 77px !important;
    }

    body.login .login-identity-copy span {
        font-size: 15px !important;
    }

    body.login .login-identity-copy strong {
        max-width: 145px !important;

        font-size: 14px !important;
    }

    body.login .login-identity-copy small {
        font-size: 12px !important;
    }
}