@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ==========================================================================
   IDNA HRIS - FILAMENT UNIFIED CUSTOM STYLESHEET (ZERO-NODE ARCHITECTURE)
   ========================================================================== */

:root {
    --hris-primary: #0284c7;
    --hris-primary-hover: #0369a1;
    --hris-primary-light: rgba(2, 132, 199, 0.08);
    --hris-bg-surface: #ffffff;
    --hris-border: #e2e8f0;
    --hris-text-main: #0f172a;
    --hris-text-muted: #64748b;
    --hris-text-subtle: #94a3b8;
    --hris-card-bg: #ffffff;
    --hris-card-border: #e2e8f0;
    --hris-table-header-bg: #f8fafc;
    --hris-table-hover-bg: #f1f5f9;
    --hris-subtle-box-bg: #f8fafc;
}

.dark {
    --hris-primary: #38bdf8;
    --hris-primary-hover: #0ea5e9;
    --hris-primary-light: rgba(56, 189, 248, 0.12);
    --hris-bg-surface: #0f172a;
    --hris-border: #334155;
    --hris-text-main: #f8fafc;
    --hris-text-muted: #94a3b8;
    --hris-text-subtle: #64748b;
    --hris-card-bg: #1e293b;
    --hris-card-border: #334155;
    --hris-table-header-bg: #1e293b;
    --hris-table-hover-bg: #334155;
    --hris-subtle-box-bg: #0f172a;
}

/* 1. Page Wrappers */
.custom-wrapper,
.command-center-wrapper,
.attendance-command-wrapper,
.ledger-wrapper,
.payroll-studio-wrapper,
.pipeline-wrapper,
.settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* 2. Text Colors & Typography */
.text-muted { color: var(--hris-text-muted); }
.text-subtle { color: var(--hris-text-subtle); }
.text-primary-blue { color: var(--hris-primary); }
.text-warning-amber { color: #d97706; }
.dark .text-warning-amber { color: #fbbf24; }
.text-success-emerald { color: #059669; }
.dark .text-success-emerald { color: #34d399; }
.text-danger-red { color: #dc2626; }
.dark .text-danger-red { color: #f87171; }
.text-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.8rem; }
.text-wa-link { color: #16a34a; font-weight: 600; text-decoration: none; }
.text-wa-link:hover { text-decoration: underline; }

.section-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hris-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hr-divider {
    border: 0;
    border-top: 1px solid var(--hris-border);
    margin: 1rem 0;
}

/* 3. Toolbar & Navigation */
.toolbar-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-nav-group {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.5rem;
    gap: 0.25rem;
}
.dark .tab-nav-group {
    background: #0f172a;
}

.tab-btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: var(--hris-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.tab-btn:hover {
    color: var(--hris-text-main);
}
.tab-btn.active {
    background: var(--hris-card-bg);
    color: var(--hris-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.filter-select, .filter-input {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid var(--hris-card-border);
    background: var(--hris-card-bg);
    color: var(--hris-text-main);
    outline: none;
    transition: border-color 0.2s;
}
.filter-select:focus, .filter-input:focus {
    border-color: var(--hris-primary);
}

/* 4. Live Pulse Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

/* 5. KPI Metric Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.kpi-card {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 0.75rem;
    padding: 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hris-text-muted);
}
.kpi-value {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--hris-text-main);
    line-height: 1.2;
}
.kpi-subtext {
    font-size: 0.75rem;
    color: var(--hris-text-subtle);
}

/* 6. Feed & Live Attendance Cards */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.125rem;
    width: 100%;
}

.attendance-feed-card {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.attendance-feed-card:hover {
    border-color: var(--hris-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.attendance-feed-card.status-late {
    border-left: 4px solid #f59e0b;
}
.attendance-feed-card.status-present {
    border-left: 4px solid #10b981;
}
.attendance-feed-card.status-field {
    border-left: 4px solid #0284c7;
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 2px solid var(--hris-card-border);
}
.user-avatar-initials {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hris-primary-light);
    color: var(--hris-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hris-card-border);
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.user-name {
    font-weight: 700;
    font-size: 0.925rem;
    color: var(--hris-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role {
    font-size: 0.75rem;
    color: var(--hris-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendance-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--hris-border);
}
.dark .attendance-meta-grid {
    background: #0f172a;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.meta-item-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--hris-text-muted);
}
.meta-item-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hris-text-main);
}

/* 7. Tables */
.table-container {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--hris-text-main);
}
.table-custom th {
    background: var(--hris-table-header-bg);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hris-text-muted);
    border-bottom: 1px solid var(--hris-border);
}
.table-custom td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--hris-border);
    vertical-align: middle;
}
.table-custom tr:hover td {
    background: var(--hris-table-hover-bg);
}

/* 8. Badges & Pills */
.badge-pill,
.badge-success,
.badge-danger,
.badge-warning,
.badge-info {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 700;
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.dark .badge-success { color: #34d399; }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.dark .badge-danger { color: #f87171; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.dark .badge-warning { color: #fbbf24; }
.badge-info { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.dark .badge-info { color: #38bdf8; }

/* 9. Buttons */
.btn-action-primary {
    background: var(--hris-primary);
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-action-primary:hover {
    background: var(--hris-primary-hover);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--hris-text-main);
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--hris-border);
    cursor: pointer;
    transition: background 0.2s;
}
.dark .btn-secondary {
    background: #1e293b;
}
.btn-secondary:hover {
    background: #e2e8f0;
}
.dark .btn-secondary:hover {
    background: #334155;
}

.btn-wa {
    background: #16a34a;
    color: #ffffff;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}
.btn-wa:hover {
    background: #15803d;
}

/* 10. Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-box {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 1rem;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--hris-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hris-text-main);
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--hris-text-muted);
    cursor: pointer;
}
.modal-close-btn:hover {
    color: var(--hris-text-main);
}
.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--hris-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--hris-table-header-bg);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

/* 11. Empty State */
.empty-state-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--hris-card-bg);
    border: 1px dashed var(--hris-card-border);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.empty-state-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hris-text-main);
}
.empty-state-desc {
    font-size: 0.85rem;
    color: var(--hris-text-muted);
    max-width: 380px;
}

/* 12. Kanban Board (ATS & Recruitment) */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
    align-items: start;
}

.kanban-column {
    background: #f8fafc;
    border: 1px solid var(--hris-card-border);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem;
    min-height: 480px;
}
.dark .kanban-column {
    background: #0f172a;
}

.kanban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hris-text-main);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hris-border);
}

.kanban-count-pill {
    background: var(--hris-card-bg);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--hris-border);
}

.kanban-card {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 0.625rem;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--hris-primary);
}

/* 13. Ledger & Multi-Box Cards */
.ledger-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
}

.ledger-box-card {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}
.ledger-box-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hris-primary);
}

.badge-diff-pass { background: rgba(16, 185, 129, 0.15); color: #059669; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 0.375rem; font-size: 0.75rem; }
.badge-diff-over { background: rgba(2, 132, 199, 0.15); color: #0284c7; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 0.375rem; font-size: 0.75rem; }
.badge-diff-under { background: rgba(239, 68, 68, 0.15); color: #dc2626; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 0.375rem; font-size: 0.75rem; }

/* 14. Employee 360° Dossier */
.dossier-header-card {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dossier-stat-tile {
    background: var(--hris-subtle-box-bg);
    border: 1px solid var(--hris-border);
    border-radius: 0.625rem;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* 15. Modal Dialogs, Overlays & Sub-Boxes */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-card-border);
    border-radius: 0.875rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--hris-text-main);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--hris-border);
    background: var(--hris-card-bg);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hris-text-main);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--hris-text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}
.modal-close-btn:hover {
    color: var(--hris-text-main);
    background: var(--hris-table-hover-bg);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--hris-text-main);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--hris-border);
    background: var(--hris-table-header-bg);
}

.subtle-box,
.hris-info-box {
    background: var(--hris-subtle-box-bg);
    border: 1px solid var(--hris-border);
    border-radius: 0.5rem;
    padding: 0.875rem;
    color: var(--hris-text-main);
    line-height: 1.6;
}

.btn-secondary {
    background: var(--hris-card-bg);
    border: 1px solid var(--hris-border);
    color: var(--hris-text-main);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-secondary:hover {
    background: var(--hris-table-hover-bg);
    border-color: var(--hris-text-muted);
}

/* ==========================================================================
   TWO-TONE SAPPHIRE BLUE SPLIT CURVED AUTH / LOGIN (MATCHING USER MOCKUP)
   ========================================================================== */

/* 1. Backdrop */
.hris-auth-screen {
    min-height: 100vh;
    background-color: #273038;
    background-image:
        radial-gradient(at 15% 15%, rgba(2, 132, 199, 0.25) 0px, transparent 45%),
        radial-gradient(at 85% 85%, rgba(13, 84, 143, 0.3) 0px, transparent 45%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
    box-sizing: border-box;
}

.hris-auth-screen,
.hris-auth-screen * {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
}

/* 2. Card Container */
.hris-auth-container {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

.hris-auth-card {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 540px;
    position: relative;
}

/* 3. Left Hero Pane with Organic S-Curve */
.hris-auth-left {
    background: linear-gradient(145deg, #0a3d68 0%, #0d548f 50%, #0284c7 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    border-radius: 0 180px 45px 0 / 0 160px 40px 0;
    z-index: 2;
}

/* Bottom-Left White Cutout Wave */
.hris-curve-bottom-left {
    position: absolute;
    bottom: -45px;
    left: -45px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    z-index: 1;
    pointer-events: none;
}

/* Inner Translucent Cyan Accent Wave */
.hris-curve-inner-accent {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(2, 132, 199, 0.12) 50%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.hris-auth-left-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 280px;
}

.hris-auth-logo-badge {
    width: 68px;
    height: 68px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    margin-bottom: 0.75rem;
    overflow: hidden;
    padding: 12px;
}

.hris-auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hris-auth-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hris-auth-headline {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.hris-auth-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin: 0 0 1.75rem 0;
    font-weight: 400;
}

.hris-auth-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.8rem;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
}

.hris-auth-footer-tag {
    margin-top: 2rem;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    font-weight: 600;
}

/* 4. Right Form Pane with Top-Right Blue Wave */
.hris-auth-right {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hris-curve-top-right {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #0284c7 0%, #0a3d68 100%);
    border-bottom-left-radius: 120px;
    pointer-events: none;
    z-index: 1;
}

.hris-auth-form-container {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.hris-auth-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.hris-auth-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0d548f;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.hris-auth-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.hris-auth-form-body {
    width: 100%;
}

/* Force dark text on white right card (even if Dark Mode is active in browser/system) */
.hris-auth-right,
.hris-auth-right .fi-fo-field-wrp,
.hris-auth-right .fi-fo-field-wrp-label,
.hris-auth-right .fi-fo-field-wrp-label *,
.hris-auth-right label,
.hris-auth-right label *,
.hris-auth-right .fi-checkbox-label,
.hris-auth-right .fi-checkbox-label *,
.hris-auth-right .fi-fo-checkbox-wrp,
.hris-auth-right .fi-fo-checkbox-wrp * {
    color: #334155 !important;
}

.hris-auth-right .fi-fo-field-wrp-label,
.hris-auth-right label {
    font-size: 0.825rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-left: 0.5rem;
    margin-bottom: 0.25rem !important;
}

.hris-auth-right .fi-fo-field-wrp-label span,
.hris-auth-right label span {
    color: #334155 !important;
}

/* Red required asterisk */
.hris-auth-right sup,
.hris-auth-right .fi-fo-field-wrp-label-asterisk,
.hris-auth-right .text-danger-600,
.hris-auth-right span.text-danger-600 {
    color: #dc2626 !important;
}

/* Checkbox and Text */
.hris-auth-right .fi-fo-checkbox-wrp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0.5rem 0.5rem;
}

.hris-auth-right .fi-fo-checkbox-wrp label span,
.hris-auth-right .fi-checkbox-label span {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
}

/* Password reveal button */
.hris-auth-right .fi-input-wrp button,
.hris-auth-right .fi-input-wrp svg {
    color: #0369a1 !important;
}

.hris-auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.75rem;
    color: #94a3b8 !important;
}

/* 5. Filament Form Controls Customization under .hris-auth-screen */
.hris-auth-screen .fi-input-wrp {
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    padding: 0.15rem 0.5rem !important;
    transition: all 0.2s ease !important;
}

.hris-auth-screen .fi-input-wrp:focus-within {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25) !important;
}

.hris-auth-screen .fi-input-wrp input,
.hris-auth-screen .fi-input-wrp input:focus,
.hris-auth-screen .fi-input-wrp input:active,
.hris-auth-screen .fi-input-wrp input:hover,
.hris-auth-screen .fi-input-wrp input:-webkit-autofill,
.hris-auth-screen .fi-input-wrp input:-webkit-autofill:hover,
.hris-auth-screen .fi-input-wrp input:-webkit-autofill:focus,
.hris-auth-screen .fi-input-wrp input:-webkit-autofill:active {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0284c7 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0.65rem 1rem !important;
    background: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px #e0f2fe inset !important;
    box-shadow: 0 0 0 1000px #e0f2fe inset !important;
}

.hris-auth-screen .fi-input-wrp input::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 0.75 !important;
}

.hris-auth-screen button[type="submit"],
.hris-auth-screen .fi-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em;
    padding: 0.75rem 2.5rem !important;
    border-radius: 9999px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4) !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    min-width: 150px;
    margin: 0.75rem auto 0 auto !important;
    display: block !important;
    cursor: pointer !important;
    text-transform: uppercase;
}

.hris-auth-screen button[type="submit"]:hover,
.hris-auth-screen .fi-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.5) !important;
}

.hris-auth-screen button[type="submit"]:active,
.hris-auth-screen .fi-btn-primary:active {
    transform: translateY(0) !important;
}

/* 6. Responsive Stack for Mobile Screens */
@media (max-width: 768px) {
    .hris-auth-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .hris-auth-left {
        padding: 2.5rem 1.5rem;
        border-radius: 0 0 24px 24px;
    }

    .hris-auth-right {
        padding: 2rem 1.5rem;
    }
}

/* 7. Error Messages & Validation Feedback */
.hris-auth-screen .fi-fo-field-wrp-error-message,
.hris-auth-screen .text-danger-600,
.hris-auth-screen [class*="error-message"],
.hris-auth-screen .fi-fo-field-wrp-error-message * {
    color: #dc2626 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-top: 0.35rem !important;
    margin-left: 0.75rem !important;
    display: block !important;
}
