/**
 * SI-REMBES Reference Design Stylesheet
 */

 :root {
    --clr-primary: #0a369d;
    --clr-primary-light: #1d4ed8;
    --clr-text-dark: #1e293b;
    --clr-text-muted: #64748b;
    --font-main: 'Inter', system-ui, sans-serif;
    
    /* Atur persentase di sini jika air kurang pas posisinya dengan moncong keran */
    --faucet-x: 39%;
    --faucet-y: 30%;
}

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

body, html {
    width: 100vw; height: 100vh; overflow: hidden;
    font-family: var(--font-main);
    
    /* VERY IMPORTANT: Background uses the user's uploaded image */
    background: url('/images/bg-brebes.jpg') no-repeat center center;
    background-size: cover;
    background-color: #0b192c; /* Fallback */
}

/* Water Canvas Overlay */
.water-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Surface Water & Ripples */
.surface-layer {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 22vh; /* Ditinggikan agar lebih terlihat */
    z-index: 15;
    pointer-events: none;
}
.water-surface-gradient {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    /* Gradien dibuat jauh lebih pekat dan biru menyala */
    background: linear-gradient(to bottom, rgba(14, 55, 125, 0.4), rgba(4, 20, 50, 1));
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 -10px 30px rgba(14, 55, 125, 0.4); /* Efek cahaya memancar ke atas */
}
.ripple-canvas, .bubbles-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* UI Layer */
.ui-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    justify-content: flex-end; /* Memindahkan kartu ke sisi kanan */
    align-items: center;
    padding-right: 8%; /* Memberi jarak aman dari tepi layar */
    z-index: 20;
}

/* Glass Card */
.login-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.85); /* White glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1.75rem 1.75rem 1.25rem 1.75rem;
    box-shadow: 0 15px 35px rgba(0, 30, 80, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

/* Top shiny reflection on the card */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Header */
.card-header { text-align: center; margin-bottom: 1rem; }
.logo-wrapper { width: 70px; height: 70px; margin: 0 auto 0.8rem; }
.app-logo { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(29, 78, 216, 0.2)); }
.app-title { font-size: 1.5rem; font-weight: 700; color: var(--clr-text-dark); margin-bottom: 0.2rem; letter-spacing: -0.5px; }
.app-subtitle { font-size: 0.8rem; color: var(--clr-text-muted); line-height: 1.35; }

.header-divider {
    width: 30px; height: 2px; background: #d4af37;
    margin: 0.75rem auto 0; border-radius: 2px; opacity: 0.6;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 1rem; }

.input-group { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 1rem; color: #94a3b8; display: flex; align-items: center; z-index: 2;}
.glass-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--clr-text-dark);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.glass-input:focus {
    outline: none; background: #ffffff;
    border-color: var(--clr-primary-light);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.glass-input:focus + .input-icon, .input-group:focus-within .input-icon { color: var(--clr-primary-light); }

.btn-toggle-password {
    position: absolute; right: 1rem; background: none; border: none;
    color: #94a3b8; cursor: pointer; display: flex; align-items: center; z-index: 2;
}
.btn-toggle-password:hover { color: var(--clr-text-dark); }

/* Options */
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 0 0.2rem; }
.checkbox-container { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; color: var(--clr-text-dark); font-weight: 500; }
.checkbox-container input { display: none; }
.custom-checkbox { width: 16px; height: 16px; background: var(--clr-primary-light); border-radius: 4px; display: flex; justify-content: center; align-items: center; }
.custom-checkbox::after { content: ''; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px; }
.link-forgot { color: var(--clr-primary-light); text-decoration: none; font-weight: 500; }
.link-forgot:hover { text-decoration: underline; }

/* Button */
.btn-submit {
    width: 100%; padding: 0.9rem; margin-top: 0.5rem;
    background: linear-gradient(to right, #0d3291, #1d4ed8);
    color: white; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 600; font-family: inherit;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 0.5rem;
    box-shadow: 0 8px 15px rgba(29, 78, 216, 0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(29, 78, 216, 0.4); }
.btn-submit:active { transform: translateY(0); }

/* Footer */
.card-footer { text-align: center; margin-top: 2rem; font-size: 0.75rem; color: var(--clr-text-muted); }
.card-footer strong { color: var(--clr-text-dark); }
