:root {
    --primary: #0d4079;
    --primary-dark: #0a2f5c;
    --primary-light: #1a5fa8;
    --gold: #ffc107;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(26, 95, 168, 0.45) 0%, rgba(10, 47, 92, 0.92) 100%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M0 0h80v80H0z' fill='none'/%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3Cpath d='M40 10l30 30-30 30-30-30z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='40' cy='40' r='18' stroke='%23ffffff' stroke-opacity='0.06' fill='none' stroke-width='2'/%3E%3Cpath d='M0 0l20 20L0 40zm80 0L60 20l20 20zM0 80l20-20L0 40zm80 0L60 60l20-20z'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(255, 193, 7, 0.14);
    border-radius: 50%;
    top: -60px;
    left: -60px;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(26, 95, 168, 0.3);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.login-wrapper {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease;
}

.brand-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.brand-logo {
    width: 85px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

.brand-title {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
}

.input-group-text {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-600);
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.form-control {
    border-color: var(--gray-300);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(26, 95, 168, 0.18);
}

.btn-toggle-pwd {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(13, 64, 121, 0.3);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 16px rgba(13, 64, 121, 0.4);
    color: var(--white);
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.8rem;
    color: var(--gray-600);
}

.login-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.copyright-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.775rem;
    margin-top: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* FIX: Z-Index agar Datepicker muncul paling atas melebihi Modal SweetAlert2 */
.datepicker-dropdown {
    z-index: 99999999 !important;
}

/* ==========================================
   CUSTOM ELEGAN STYLING FOR BOOTSTRAP DATEPICKER
   ========================================== */

/* Container Utama Dropdown */
.datepicker-dropdown {
    z-index: 99999999 !important;
    padding: 12px 16px !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
}

/* Tabel Utama Kalender */
.datepicker table {
    border-collapse: separate !important;
    border-spacing: 4px !important; /* Memberi jarak antar tanggal agar tidak rapat */
}

/* Header (Bulan, Tahun, Navigasi Panah) */
.datepicker table thead tr:first-child th {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    padding-bottom: 8px !important;
    border-radius: 0.375rem !important;
}

.datepicker table thead tr:first-child th:hover {
    background-color: var(--gray-100) !important;
}

/* Nama Hari (Su, Mo, Tu, dll) */
.datepicker table thead tr:nth-child(2) th {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--gray-600) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding-bottom: 6px !important;
}

/* Sel Tanggal (Seluruh Angka) */
.datepicker table tbody td.day {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    color: var(--gray-800) !important;
    border-radius: 0.5rem !important; /* Membuat sudut sel agak membulat */
    transition: all 0.15s ease-in-out !important;
    padding: 0 !important;
}

/* Hover Sel Tanggal */
.datepicker table tbody td.day:hover {
    background-color: var(--gray-100) !important;
    color: var(--primary) !important;
}

/* Tanggal Hari Ini (Today Highlight) */
.datepicker table tbody td.today {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
}

/* Tanggal Terpilih (Selected Active) */
.datepicker table tbody td.active,
.datepicker table tbody td.active:hover {
    background-color: var(--primary) !important;
    background-image: none !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px -1px rgba(13, 64, 121, 0.3) !important;
}

/* Tanggal Bulan Sebelum/Sesudah (Old/New) */
.datepicker table tbody td.old,
.datepicker table tbody td.new {
    color: #d1d5db !important;
}

/* Tampilan Bulan & Tahun Mode Seleksi Fast-Picker */
.datepicker table tbody td span {
    border-radius: 0.5rem !important;
    font-size: 0.85rem !important;
    margin: 2px !important;
}

.datepicker table tbody td span.active {
    background-color: var(--primary) !important;
    background-image: none !important;
}

/* Centering Datepicker Box tepat di tengah layar / tengah modal SweetAlert */
.datepicker-dropdown.datepicker-centered {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}