:root {
    --blue: #168cff;
    --green: #39df72;
    --red: #ff4d5b;
    --text: #edf5ff;
    --muted: #8193a8
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    background: #02070d;
    color: var(--text);
    font-family: Inter, sans-serif
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    background: linear-gradient(90deg, rgba(1, 7, 13, .72), rgba(1, 7, 13, .42), rgba(1, 7, 13, .86)), url("/assets/images/dispatch-background.png") center/cover no-repeat
}

.login-page:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 7, 14, .25), rgba(0, 5, 11, .72))
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: min(1180px, 96vw);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 410px;
    overflow: hidden;
    border: 1px solid rgba(116, 160, 205, .18);
    border-radius: 24px;
    background: rgba(2, 9, 17, .34);
    box-shadow: 0 35px 90px #000a, 0 0 80px #0e7eff0f;
    backdrop-filter: blur(3px)
}

.login-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    background: linear-gradient(90deg, #020a1233, #020a1205)
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px
}

.brand-logo {
    width: 52px;
    height: 52px;
    border: 1px solid #2d97ffb0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #041b30d1;
    box-shadow: 0 0 35px #1a8bff26
}

.brand-logo svg {
    width: 34px
}

.brand-title {
    font: 800 22px Manrope;
    letter-spacing: .04em
}

.brand-subtitle {
    color: #8da1b7;
    font-size: 10px;
    letter-spacing: .18em
}

.hero-copy {
    max-width: 570px
}

.live-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    margin-bottom: 18px;
    border: 1px solid #39df723d;
    border-radius: 8px;
    background: #072d1d57;
    color: #61e98b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.5s infinite
}

@keyframes pulse {
    50% {
        transform: scale(1);
        opacity: 1
    }

    0%,
    100% {
        transform: scale(.75);
        opacity: .55
    }
}

.hero-copy h1 {
    margin: 0;
    font: 800 clamp(38px, 4vw, 60px)/1.03 Manrope;
    letter-spacing: -.035em
}

.hero-copy h1 span {
    color: #53b1ff
}

.hero-copy p {
    max-width: 510px;
    margin: 20px 0 0;
    color: #9eafc2;
    font-size: 13px;
    line-height: 1.8
}

.system-status {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px
}

.status-item {
    min-width: 105px;
    padding: 10px 12px;
    border: 1px solid #6991b82e;
    border-radius: 10px;
    background: #030e199e
}

.status-item small {
    display: block;
    color: #6e8197;
    font-size: 8px;
    text-transform: uppercase
}

.status-item strong {
    display: block;
    margin-top: 4px;
    font-size: 12px
}

.online {
    color: var(--green)
}

.talking {
    color: #ffc441
}

.offline {
    color: #ff626d
}

.copyright {
    color: #61758b;
    font-size: 9px
}

.login-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 38px;
    background: linear-gradient(145deg, #05121ff0, #020911f5);
    border-left: 1px solid #6b97c12b
}

.login-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(transparent, #2594ffb3, transparent)
}

.login-form {
    width: 100%
}

.login-form h2 {
    margin: 0;
    font: 800 27px Manrope
}

.subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6
}

.form-label {
    color: #9eb0c4;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 7px
}

.input-wrap {
    position: relative
}

.input-icon {
    position: absolute;
    z-index: 3;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #668098
}

.form-control {
    height: 46px;
    padding-left: 39px;
    padding-right: 42px;
    color: #e8f2fc !important;
    background: #071421 !important;
    border: 1px solid #20384f !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 12px
}

.form-control::placeholder {
    color: #53677d
}

.form-control:focus {
    border-color: #2292ffbf !important;
    box-shadow: 0 0 0 3px #178cff14 !important
}

.password-toggle {
    position: absolute;
    z-index: 4;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #657b92;
    padding: 4px
}

.password-toggle:hover {
    color: #59adff
}

.remember {
    color: #778ba0;
    font-size: 10px
}

.remember input {
    background: #071421;
    border-color: #2a435b
}

.forgot {
    color: #5daeff;
    text-decoration: none;
    font-size: 10px
}

.btn-login {
    width: 100%;
    height: 47px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #168cff, #0865c9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 12px 30px rgba(15, 119, 227, .20);
    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

/* HOVER */
.btn-login:hover {
    color: #ffffff;
    background: linear-gradient(135deg,#0878df,#0755aa);
    box-shadow:
        0 14px 35px rgba(15, 119, 227, .30);
    transform: translateY(-1px);
}

/* ACTIVE / SAAT DITEKAN */
.btn-login:active {
    color: #ffffff;
    background: linear-gradient(135deg, #066ac5, #04478f);
    transform: translateY(0);
    box-shadow:
        0 7px 18px rgba(15, 119, 227, .20);
}

/* FOCUS */
.btn-login:focus-visible {
    color: #ffffff;
    outline: none;
    box-shadow:
        0 0 0 3px rgba(22, 140, 255, .18),
        0 12px 30px rgba(15, 119, 227, .25);
}

.security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
    color: #5e7187;
    font-size: 9px
}

.security i {
    color: var(--green)
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
    color: #52667d;
    font-size: 9px
}

.divider:before,
.divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1a2d42
}

.server-info {
    padding: 11px 12px;
    border: 1px solid #1b3147;
    border-radius: 9px;
    background: #07131fb3
}

.server-top {
    display: flex;
    justify-content: space-between;
    color: #8295aa;
    font-size: 9px
}

.server {
    margin-top: 5px;
    color: #d4e1ee;
    font-size: 10px;
    font-weight: 600
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important; /* Sesuaikan warna background gelap Anda (misal: #0f172a atau #1e293b) */
    -webkit-text-fill-color: #f8fafc !important; /* Warna teks input agar tetap putih/terang */
    transition: background-color 5000s ease-in-out 0s;
}

@media(max-width:900px) {
    body {
        overflow: auto
    }

    .login-page {
        padding: 20px
    }

    .login-wrapper {
        grid-template-columns: 1fr;
        min-height: auto
    }

    .login-info {
        min-height: 330px;
        padding: 30px
    }

    .login-card {
        padding: 30px
    }

    .login-card:before {
        display: none
    }
}

@media(max-width:520px) {
    .login-page {
        padding: 0
    }

    .login-wrapper {
        width: 100%;
        border-radius: 0
    }

    .login-info {
        min-height: 280px;
        padding: 24px
    }

    .hero-copy h1 {
        font-size: 35px
    }

    .system-status {
        display: none
    }

    .login-card {
        padding: 24px
    }
}

/*ALERT RED*/
.custom-alert-red {
    padding: 0.6rem 1rem !important; 
    /* Ukuran teks di dalam alert diperkecil */
    font-size: 0.85rem !important;
    background-color: rgba(220, 53, 69, 0.15) !important; 
    border: 1px solid rgba(220, 53, 69, 0.15) !important; 
    color: #ef4444 !important;
}

/* Memastikan elemen teks bold di dalam alert tetap bernuansa merah senada */
.custom-alert-red strong {
    color: #f87171 !important;
}

/* Mengubah ikon 'X' tombol close agar ikut menjadi merah */
.custom-alert-red .btn-close {
    width: 14px;
    height: 14px;
    padding: 12px;
    transform: scale(0.65); 
    filter: invert(40%) sepia(85%) saturate(1500%) hue-rotate(330deg) brightness(100%) contrast(95%);
    opacity: 0.8;
}

.custom-alert-red .btn-close:hover {
    opacity: 1;
}

/* Menghilangkan border/outline biru saat tombol close diklik/focus */
.custom-alert-red .btn-close:focus {
    outline: none !important;
    box-shadow: none !important;
}