/* Modern Absensi SIMDes Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
    --abs-primary: #059669;
    --abs-primary-hover: #047857;
    --abs-accent: #06b6d4;
    --abs-dark-bg: #041716;
    --abs-dark-surface: #062624;
    --abs-glass-bg: rgba(255, 255, 255, 0.05);
    --abs-glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body.hold-transition.login-page {
    background-color: #041716 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
}

.absensi-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 45%),
        linear-gradient(135deg, #021a18 0%, #062b28 50%, #031413 100%);
}

.absensi-shell {
    width: 100%;
    max-width: 1140px;
    display: flex;
    gap: 32px;
    align-items: stretch;
    margin: 0 auto;
}

/* ========================================================
   KOLOM KIRI: HERO & LIVE TELEMETRY
======================================================== */
.absensi-col-left {
    flex: 1.15;
    display: flex;
    flex-direction: column;
}

.absensi-left-hero {
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 36px;
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.absensi-brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.absensi-logo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.absensi-desa-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.absensi-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: absPulse 1.8s infinite;
}

@keyframes absPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.absensi-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.absensi-desa-meta {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* Jam Digital & Kalender */
.absensi-clock-card {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.4) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.absensi-clock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.clock-label {
    font-size: 12px;
    font-weight: 700;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clock-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.status-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.absensi-time-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.absensi-digital-digits {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.4);
    line-height: 1;
}

.absensi-tz-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.absensi-date-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.date-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
}

.date-day-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.date-status-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

/* Telemetry Card */
.absensi-telemetry-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.telemetry-header {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.telemetry-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 9px 12px;
    border-radius: 10px;
}

.telemetry-item.full-span {
    grid-column: span 2;
}

.telemetry-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.telemetry-val {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
}

.telemetry-copy-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mono-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    word-break: break-all;
}

.btn-copy-id {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-id:hover {
    background: rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

.absensi-hero-quote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    font-style: italic;
    border-left: 2.5px solid #10b981;
    padding-left: 12px;
    margin-top: auto;
}

/* ========================================================
   KOLOM KANAN: CARD AUTENTIKASI
======================================================== */
.absensi-col-right {
    flex: 0.95;
    display: flex;
    flex-direction: column;
}

.absensi-auth-card {
    height: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 38px 34px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.auth-card-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.auth-card-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.4;
}

/* Tabs */
.auth-tabs-wrap {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 22px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn:hover:not(.active) {
    color: #0f172a;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 18px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-lead-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.form-control-modern {
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 42px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s;
}

.form-control-modern:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
    outline: none;
}

.select-modern {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 8px;
    transition: color 0.2s;
}

.btn-toggle-pwd:hover {
    color: #059669;
}

/* Tombol Aksi */
.auth-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-auth-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
    transition: all 0.25s;
    text-decoration: none;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px -5px rgba(5, 150, 105, 0.5);
    color: #ffffff;
}

.btn-auth-secondary {
    width: 100%;
    height: 46px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.btn-auth-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Scanner Animasi e-KTP */
.ektp-scanner-box {
    position: relative;
    height: 220px;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%), #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.rfid-card-illustration {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, #059669, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.35);
    position: relative;
    z-index: 2;
}

.radar-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    animation: absRipple 2.5s infinite;
}

.ring-1 { width: 90px; height: 90px; animation-delay: 0s; }
.ring-2 { width: 140px; height: 140px; animation-delay: 0.8s; }
.ring-3 { width: 190px; height: 190px; animation-delay: 1.6s; }

@keyframes absRipple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.scanner-prompt-text {
    margin-top: 14px;
    text-align: center;
    z-index: 2;
}

.scanner-prompt-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
}

.scanner-prompt-text p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* User Profil Terverifikasi (Checked-In / Out) */
.user-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 16px auto 12px;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.user-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-profile-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.user-profile-jabatan {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.btn-record-in {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 12px 24px -6px rgba(16, 185, 129, 0.5);
    transition: all 0.25s;
}

.btn-record-in:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -6px rgba(16, 185, 129, 0.6);
}

.btn-record-out {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 12px 24px -6px rgba(239, 68, 68, 0.5);
    transition: all 0.25s;
}

.btn-record-out:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -6px rgba(239, 68, 68, 0.6);
}

/* Card Sukses */
.status-success-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.success-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.success-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 4px;
}

.success-content p {
    font-size: 12px;
    color: #047857;
    margin: 0 0 10px;
}

.countdown-bar {
    width: 100%;
    height: 5px;
    background: #d1fae5;
    border-radius: 10px;
    overflow: hidden;
}

.countdown-fill {
    height: 100%;
    background: #10b981;
    animation: countdownShrink 5s linear forwards;
}

@keyframes countdownShrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* Blocked card */
.auth-blocked-card {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.blocked-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.blocked-title {
    font-size: 16px;
    font-weight: 800;
    color: #991b1b;
    margin: 0 0 6px;
}

.blocked-message {
    font-size: 13px;
    color: #b91c1c;
    margin: 0 0 12px;
}

.blocked-hint {
    font-size: 11px;
    color: #7f1d1d;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Footer Link */
.auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.footer-link {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    color: #059669;
}

.footer-sep {
    color: #cbd5e1;
}

/* ========================================================
   RESPONSIVE LAYOUT
======================================================== */
@media (max-width: 991px) {
    .absensi-shell {
        flex-direction: column;
        max-width: 580px;
    }

    .absensi-left-hero {
        padding: 28px 24px;
    }

    .absensi-auth-card {
        padding: 30px 24px;
    }

    .absensi-digital-digits {
        font-size: 38px;
    }
}
