/* =====================================================
   SILAPAK PALU — LOGIN PAGE (REDESIGN)
===================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* =====================================================
   PAGE WRAPPER — SPLIT SCREEN
===================================================== */
.page-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* =====================================================
   GARIS GRADASI — FULL LEBAR HALAMAN
===================================================== */
.page-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;         
    height: 4px;
    background: linear-gradient(90deg, #1D9E75, #378ADD);
    z-index: 100;      
}

/* =====================================================
   LEFT PANEL
===================================================== */
.left-panel {
    flex: 0 0 520px;
    background: #00376a; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 2rem 2rem;
    box-shadow: none;
}

/* Accent bar di left-panel dihapus (sudah pakai page-wrapper::before) */
.top-bar-accent {
    display: none;
}

/* =====================================================
   GLASS CARD
===================================================== */
.form-card {
    width: 100%;
    max-width: 650px;

    background: rgba(255, 255, 255, 0.263);
    /* background: rgba(255, 255, 255, 0.479); */
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 24px;

    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    padding: 3rem 3rem;
    position: relative;
    z-index: 2;
}

/* =====================================================
   BRAND / LOGO — CENTERED
===================================================== */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.75rem;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.brand-icon .logo {
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.20));
}

.brand-icon .logo.palu    { height: 72px; }
.brand-icon .logo.silapak { height: 56px; }

/* =====================================================
   FORM HEADING
===================================================== */
.form-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-heading h1 {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.form-heading p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.60);
}

/* =====================================================
   FIELDS
===================================================== */
.field-group {
    margin-bottom: 1rem;
}

.field-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.forgot-link {
    font-size: 12px;
    color: #5DCAA5;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.forgot-link:hover { opacity: 0.75; }

/* --- Select --- */
.select-wrap { position: relative; }

.select-wrap select {
    width: 100%;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 11px 36px 11px 14px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-wrap select option {
    background: #00376a;
    color: #ffffff;
}

.select-wrap select:focus {
    border-color: #1D9E75;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.20);
}

.select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Warna chevron jadi putih */
.select-chevron path { stroke: rgba(255,255,255,0.7); }

/* --- Input --- */
.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Ikon input jadi putih/terang */
.input-icon rect,
.input-icon path,
.input-icon circle {
    stroke: rgba(255, 255, 255, 0.45);
}

.input-wrap input {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 11px 42px 11px 36px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder { color: rgba(255, 255, 255, 0.35); }

.input-wrap input:focus {
    border-color: #1D9E75;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.20);
    background: rgba(255, 255, 255, 0.18);
}

/* --- Password toggle --- */
.toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pw svg { width: 16px; height: 16px; }

/* Ikon mata jadi putih */
.toggle-pw svg ellipse,
.toggle-pw svg circle,
.toggle-pw svg path {
    stroke: rgba(255, 255, 255, 0.60);
}

/* =====================================================
   SUBMIT BUTTON
===================================================== */
#btnLogin {
    width: 100%;
    margin-top: 1.25rem;
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(29, 158, 117, 0.40);
}

#btnLogin:hover {
    background: #17896a;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(29, 158, 117, 0.50);
}

#btnLogin:active  { transform: translateY(0); }

#btnLogin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   LEFT FOOTER
===================================================== */
.left-footer {
    margin-top: 1.25rem;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* =====================================================
   RIGHT PANEL — ILLUSTRATION
===================================================== */
.right-panel {
    flex: 1;
    background: #00376a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 2rem 1.5rem;
}

.right-tagline {
    text-align: center;
    margin-bottom: 1rem;
}

.right-tagline h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.right-tagline p {
    font-size: 12.5px;
    color: #7BAAC8;
    line-height: 1.6;
}

/* Lottie player */
lottie-player {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.right-footer {
    font-size: 11px;
    color: #4d7ea8;
    margin-top: 1rem;
    text-align: center;
}

/* =====================================================
   LOADING OVERLAY
===================================================== */
#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 55, 106, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-box { text-align: center; }

.spinner-logo {
    width: 200px;
    max-width: 65vw;
    height: auto;
    margin-bottom: 18px;
    animation: spinLogo 1.4s linear infinite;
    transform-origin: center center;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
}

.loading-box p {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

@keyframes spinLogo {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =====================================================
   SWEETALERT TOAST
===================================================== */
.colored-toast {
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 600;
}

.colored-toast.success  { background: linear-gradient(135deg, #2fa84f, #1f7a3a); }
.colored-toast.error    { background: linear-gradient(135deg, #e63946, #c1121f); }
.colored-toast.question { background: linear-gradient(135deg, #457b9d, #1d3557); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 960px) {
    .page-wrapper { flex-direction: column; }

    .left-panel {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 3rem 1.5rem;
        box-shadow: none;
    }

    .right-panel { min-height: 380px; }
    .right-tagline h2 { font-size: 16px; }

    .right-bg-circle--1 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .form-heading h1 { font-size: 19px; }
    .brand-icon .logo.palu    { height: 58px; }
    .brand-icon .logo.silapak { height: 44px; }
}

/* =====================================================
   BUBBLE ANIMATION
===================================================== */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatBubble linear infinite;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    bottom: -120px; 
}

/* Ukuran & posisi tiap balon */
.bubble--1  { width: 90px;  height: 90px;  left: 5%;   background: rgba(55, 138, 221, 0.25); animation-duration: 9s;  animation-delay: 0s;   }
.bubble--2  { width: 45px;  height: 45px;  left: 12%;  background: rgba(29, 158, 117, 0.25); animation-duration: 7s;  animation-delay: 1.5s; }
.bubble--3  { width: 70px;  height: 70px;  left: 20%;  background: rgba(55, 138, 221, 0.20); animation-duration: 11s; animation-delay: 0.8s; }
.bubble--4  { width: 35px;  height: 35px;  left: 30%;  background: rgba(29, 158, 117, 0.30); animation-duration: 6s;  animation-delay: 3s;   }
.bubble--5  { width: 55px;  height: 55px;  left: 38%;  background: rgba(55, 138, 221, 0.20); animation-duration: 8s;  animation-delay: 2s;   }
.bubble--6  { width: 110px; height: 110px; left: 48%;  background: rgba(29, 158, 117, 0.15); animation-duration: 13s; animation-delay: 0.3s; }
.bubble--7  { width: 40px;  height: 40px;  left: 55%;  background: rgba(55, 138, 221, 0.30); animation-duration: 7s;  animation-delay: 4s;   }
.bubble--8  { width: 75px;  height: 75px;  left: 63%;  background: rgba(29, 158, 117, 0.20); animation-duration: 10s; animation-delay: 1s;   }
.bubble--9  { width: 50px;  height: 50px;  left: 70%;  background: rgba(55, 138, 221, 0.25); animation-duration: 8s;  animation-delay: 2.5s; }
.bubble--10 { width: 30px;  height: 30px;  left: 78%;  background: rgba(29, 158, 117, 0.30); animation-duration: 6s;  animation-delay: 3.5s; }
.bubble--11 { width: 85px;  height: 85px;  left: 83%;  background: rgba(55, 138, 221, 0.18); animation-duration: 12s; animation-delay: 0.5s; }
.bubble--12 { width: 45px;  height: 45px;  left: 88%;  background: rgba(29, 158, 117, 0.25); animation-duration: 7s;  animation-delay: 1.8s; }
.bubble--13 { width: 60px;  height: 60px;  left: 93%;  background: rgba(55, 138, 221, 0.22); animation-duration: 9s;  animation-delay: 2.8s; }

@keyframes floatBubble {
    0%   { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0; 
        bottom: -120px;
    }
    10%  { opacity: 0.6; }
    50%  { 
        transform: translateY(-50vh) translateX(15px) scale(1.05); 
        opacity: 0.3; 
    }
    90%  { opacity: 0.1; }
    100% { 
        transform: translateY(-105vh) translateX(-10px) scale(0.9); 
        opacity: 0; 
    }
}