/* uiux branding : halaman login. Gambar latar bawaan tetap dipakai tetapi diburamkan & digelapkan, form di
   tengah halaman dalam kartu transparan (efek kaca). Semua aturan di bawah body.uiux-login, jadi tidak
   berpengaruh ke dashboard. */

body.uiux-login {
    min-height: 100vh;
    background:
        radial-gradient(900px 600px at 12% 18%, rgba(0, 150, 230, 0.22), transparent 60%),
        radial-gradient(700px 520px at 88% 82%, rgba(250, 110, 20, 0.16), transparent 60%),
        linear-gradient(160deg, #070d24 0%, #0b1437 55%, #0a1230 100%) !important;
    background-attachment: fixed !important;
    color: #e8edf7;
}
body.uiux-login .main-content {
    background: transparent !important;
}
/* gambar latar (inline di .page-header) diburamkan lewat lapisan ::before yang mewarisi gambarnya;
   dibuat sedikit lebih besar dari layar supaya tepi blur tidak terlihat */
body.uiux-login .page-header {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
body.uiux-login .page-header::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    /* blur ringan: gambar tetap dikenali; keterbacaan form dijaga oleh kartu (tint + blur lokal) */
    filter: blur(3px) brightness(0.72) saturate(1.05);
    transform: scale(1.02);
}
/* sedikit warna gelap agar teks & kartu tetap kontras di atas gambar apa pun */
body.uiux-login .page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(160deg, rgba(7, 13, 36, 0.4) 0%, rgba(11, 20, 55, 0.18) 55%, rgba(7, 13, 36, 0.45) 100%);
}
body.uiux-login .page-header > .container-fluid {
    position: relative;
    z-index: 1;
}
/* kolom gambar kiri bawaan disembunyikan, kolom form menjadi selebar halaman dan transparan */
body.uiux-login .page-header .row > .col-lg-8 {
    display: none !important;
}
body.uiux-login .page-header .row > .col-lg-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}
body.uiux-login .page-header .row.align-items-center {
    justify-content: center;
}
body.uiux-login .page-header .row.align-items-center > .col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 25rem;
    padding: 1.5rem 1rem !important;
}

/* ---------- kartu kaca ---------- */
body.uiux-login .card {
    /* tint gelap + blur lokal: latar boleh lebih tajam tanpa mengganggu keterbacaan isi kartu */
    background: rgba(9, 16, 42, 0.52) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    color: #e8edf7;
}
body.uiux-login .card .card-header {
    padding: 2rem 2rem 0.5rem !important;
}
body.uiux-login .card .card-header img {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto;
    border-radius: 0 !important;
}
body.uiux-login .uiux-login-app {
    margin: 0.7rem 0 0;
    color: rgba(232, 237, 247, 0.75);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body.uiux-login .card .card-header h5 {
    margin: 1.4rem 0 0.25rem !important;
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 700;
}
body.uiux-login .card .card-header p,
body.uiux-login .card .card-header p small {
    color: rgba(232, 237, 247, 0.65) !important;
    font-size: 0.8rem;
}
body.uiux-login.uiux-login-failed .card .card-header p small {
    color: #ffb199 !important;
    font-weight: 600;
}
body.uiux-login .card .card-body {
    padding: 1.2rem 2rem 1.8rem !important;
}

/* ---------- input ---------- */
body.uiux-login .card label {
    margin-bottom: 0.35rem;
    color: rgba(232, 237, 247, 0.7);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
body.uiux-login .card .form-control {
    height: 2.75rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
    background: rgba(7, 13, 36, 0.55) !important;
    color: #ffffff !important;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.uiux-login .card .form-control::placeholder {
    color: rgba(232, 237, 247, 0.35);
}
body.uiux-login .card .form-control:focus {
    border-color: #3b9bff !important;
    background: rgba(7, 13, 36, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(59, 155, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}
body.uiux-login .card .form-control:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 40px #0d1838 inset, 0 6px 16px rgba(0, 0, 0, 0.35) !important;
    caret-color: #ffffff;
}
body.uiux-login .card .form-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0;
}
body.uiux-login .card .form-switch .form-check-input {
    float: none;
    margin: 0;
}
body.uiux-login .card .form-check-label {
    margin: 0;
    color: rgba(232, 237, 247, 0.7);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}
body.uiux-login .card .form-check-input {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}
body.uiux-login .card .form-check-input:checked {
    background-color: #3b9bff;
    border-color: #3b9bff;
}

/* ---------- tombol ---------- */
body.uiux-login .card .btn-primary {
    height: 2.75rem;
    margin: 1.4rem 0 0 !important;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b9bff 0%, #1f78e0 100%) !important;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: 0 10px 24px rgba(31, 120, 224, 0.4);
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}
body.uiux-login .card .btn-primary:hover {
    box-shadow: 0 14px 30px rgba(31, 120, 224, 0.55);
}
body.uiux-login .card .btn-primary:active {
    transform: translateY(1px);
}
body.uiux-login .uiux-login-footer {
    margin-top: 1.2rem;
    /* langsung di atas gambar latar: warna lebih pekat + bayangan tipis agar tetap terbaca di area terang */
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
    font-size: 0.72rem;
    text-align: center;
}

@media (max-width: 480px) {
    body.uiux-login .card .card-header {
        padding: 1.6rem 1.4rem 0.5rem !important;
    }
    body.uiux-login .card .card-body {
        padding: 1rem 1.4rem 1.5rem !important;
    }
}
