/* ============================================
   HRMS Portal - Stylesheet v1.2
   Professional design system + responsive
   ============================================ */
:root {
    --hrms-primary: #5B5FEF;
    --hrms-primary-dark: #4548C9;
    --hrms-accent: #F5A623;
    --hrms-accent-dark: #DB8F13;
    --hrms-ink: #0f172a;
    --hrms-heading: #111c33;
    --hrms-text: #334155;
    --hrms-muted: #64748b;
    --hrms-border: #e2e8f0;
    --hrms-line: #eef2f7;
    --hrms-bg: #f5f6fb;
    --hrms-success: #059669;
    --hrms-success-dark: #047857;
    --hrms-warning: #d97706;
    --hrms-danger: #dc2626;
    --hrms-danger-dark: #b91c1c;
    --hrms-radius: 12px;
    --hrms-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --hrms-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);

    /* Sidebar shell */
    --hrms-sidebar-w: 252px;
    --hrms-sidebar-bg-top: #171A32;
    --hrms-sidebar-bg-bottom: #10122455;
    --hrms-sidebar-bg: #14162B;
    --hrms-sidebar-text: #9EA3C7;
    --hrms-sidebar-text-active: #FFFFFF;
}

/* Typography scope */
.hrms-admin-page,
.hrms-auth,
.hrms-elg,
.hrms-wrap,
.hrms-section,
.hrms-login-form,
.hrms-dashboard-cards,
.hrms-employee-dashboard,
.hrms-payslips-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Dashboard Cards */
.hrms-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.hrms-card {
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: var(--hrms-radius);
    padding: 22px;
    display: flex;
    align-items: center;
    box-shadow: var(--hrms-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hrms-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hrms-shadow);
}

.hrms-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 18px;
    flex-shrink: 0;
}

.hrms-card-blue .hrms-card-icon { background: #dbeafe; color: #2563eb; }
.hrms-card-green .hrms-card-icon { background: #d1fae5; color: #059669; }
.hrms-card-orange .hrms-card-icon { background: #ffedd5; color: #ea580c; }
.hrms-card-purple .hrms-card-icon { background: #ede9fe; color: #7c3aed; }
.hrms-card-red .hrms-card-icon { background: #fee2e2; color: #dc2626; }

.hrms-card-info h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--hrms-ink);
}

.hrms-card-info p {
    margin: 6px 0 0;
    color: var(--hrms-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Sections */
.hrms-section, .hrms-wrap .hrms-section {
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: var(--hrms-radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--hrms-shadow-sm);
}

.hrms-section h2, .hrms-section h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hrms-line);
    color: var(--hrms-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.hrms-section h3 {
    font-size: 15px;
}

.hrms-section h2 i, .hrms-section h3 i {
    margin-right: 8px;
    color: var(--hrms-primary);
}

/* Status Badges */
.hrms-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.hrms-status-present, .hrms-status-approved, .hrms-status-paid { background: #d1fae5; color: #047857; }
.hrms-status-absent, .hrms-status-rejected { background: #fee2e2; color: #b91c1c; }
.hrms-status-half_day, .hrms-status-pending { background: #fef3c7; color: #b45309; }
.hrms-status-late { background: #fce7f3; color: #be185d; }
.hrms-status-holiday, .hrms-status-week_off { background: #dbeafe; color: #1d4ed8; }
.hrms-status-active { background: #d1fae5; color: #047857; }
.hrms-status-inactive, .hrms-status-terminated { background: #f1f5f9; color: #64748b; }
.hrms-status-hold { background: #fef3c7; color: #b45309; }
.hrms-status-work_from_home { background: #dbeafe; color: #1d4ed8; }
.hrms-status-processing { background: #fef3c7; color: #b45309; }

/* Forms */
.hrms-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 16px;
}

.hrms-form-group {
    margin-bottom: 14px;
}

.hrms-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--hrms-text);
    font-size: 12.5px;
    letter-spacing: 0.2px;
}

.hrms-form-group input[type="text"],
.hrms-form-group input[type="email"],
.hrms-form-group input[type="number"],
.hrms-form-group input[type="date"],
.hrms-form-group input[type="time"],
.hrms-form-group input[type="password"],
.hrms-form-group textarea,
.hrms-form-group select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--hrms-border);
    border-radius: 9px;
    font-size: 14px;
    color: var(--hrms-ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.hrms-form-group input:focus,
.hrms-form-group textarea:focus,
.hrms-form-group select:focus {
    outline: none;
    border-color: var(--hrms-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.hrms-form-full {
    grid-column: 1 / -1;
}

/* Tables */
.hrms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: 10px;
    font-size: 13.5px;
    box-shadow: var(--hrms-shadow-sm);
}

.hrms-table th,
.hrms-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hrms-line);
    vertical-align: middle;
}

.hrms-table thead th {
    background: #f8fafc;
    color: #55637a;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--hrms-border);
}

.hrms-table thead tr th:first-child { border-top-left-radius: 9px; }
.hrms-table thead tr th:last-child { border-top-right-radius: 9px; }
.hrms-table tbody tr:last-child td:first-child { border-bottom-left-radius: 9px; }
.hrms-table tbody tr:last-child td:last-child { border-bottom-right-radius: 9px; }
.hrms-table tbody tr:last-child td { border-bottom: none; }

.hrms-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.hrms-table tbody tr:hover {
    background: #f0f6ff;
}

/* Buttons */
.hrms-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.45;
}

.hrms-btn i { margin-right: 6px; }

.hrms-btn-primary {
    background: linear-gradient(135deg, #2f6bee, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.hrms-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.32);
}

.hrms-btn-success {
    background: linear-gradient(135deg, #089e71, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.hrms-btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hrms-btn-danger {
    background: linear-gradient(135deg, #e23434, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.hrms-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hrms-btn-large {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 11px;
}

.hrms-btn-small {
    padding: 6px 13px;
    font-size: 12px;
    border-radius: 7px;
}

.hrms-btn-full {
    width: 100%;
}

/* Login Form */
.hrms-login-form {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--hrms-line);
    box-shadow: 0 18px 44px -12px rgba(15, 23, 42, 0.18);
}

.hrms-login-form h2 {
    text-align: center;
    margin-bottom: 28px;
    color: var(--hrms-ink);
}

.hrms-login-form .hrms-form-group {
    margin-bottom: 20px;
}

.hrms-login-form input {
    padding: 12px 15px;
    font-size: 15px;
}

/* Alert Messages */
.hrms-alert {
    padding: 13px 18px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 13.5px;
    font-weight: 500;
}

.hrms-alert-success { background: #ecfdf5; color: #047857; border-left: 4px solid #10b981; }
.hrms-alert-error { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }
.hrms-alert-warning { background: #fffbeb; color: #b45309; border-left: 4px solid #f59e0b; }
.hrms-alert-info { background: #eff6ff; color: #1d4ed8; border-left: 4px solid #3b82f6; }

/* Modal */
.hrms-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrms-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.45);
}

.hrms-modal-large {
    max-width: 720px;
}

.hrms-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.hrms-modal-close:hover {
    color: var(--hrms-ink);
}

/* Action Bar */
.hrms-action-bar {
    margin: 20px 0;
}

/* Flex Row */
.hrms-flex-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hrms-half {
    flex: 1;
    min-width: 300px;
}

/* Employee Dashboard */
.hrms-employee-dashboard .hrms-welcome {
    background: linear-gradient(130deg, #101f3c 0%, #16305e 55%, #2563eb 135%);
    color: #fff;
    padding: 28px 30px;
    border-radius: var(--hrms-radius);
    margin-bottom: 20px;
    box-shadow: 0 10px 26px -10px rgba(16, 31, 60, 0.5);
}

.hrms-employee-dashboard .hrms-welcome h2 {
    margin: 0 0 5px;
    color: #fff;
}

.hrms-employee-dashboard .hrms-welcome p {
    margin: 0;
    opacity: 0.88;
}

/* Admin Portal */
.hrms-admin-portal .hrms-welcome {
    background: linear-gradient(130deg, #101f3c 0%, #16305e 55%, #2563eb 135%);
    color: #fff;
    padding: 28px 30px;
    border-radius: var(--hrms-radius);
    margin-bottom: 20px;
    box-shadow: 0 10px 26px -10px rgba(16, 31, 60, 0.5);
}

.hrms-admin-portal .hrms-welcome h2 {
    margin: 0 0 5px;
    color: #fff;
}

.hrms-admin-portal .hrms-welcome p {
    margin: 0;
    opacity: 0.88;
}

/* Check-in/out Area */
.hrms-checkin-area {
    text-align: center;
    padding: 40px 20px;
}

.hrms-checkin-area p {
    margin-top: 10px;
    color: var(--hrms-muted);
}

.hrms-attendance-status {
    text-align: center;
    padding: 20px;
}

.hrms-attendance-status p {
    margin: 10px 0;
    color: var(--hrms-text);
}

/* Attendance Check-in Button Pulse Animation */
@keyframes hrms-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    70% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hrms-checkin-btn {
    animation: hrms-pulse 2s infinite;
    padding: 20px 60px !important;
    font-size: 19px !important;
    border-radius: 50% !important;
    width: 150px;
    height: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Leave Balance */
.hrms-leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.hrms-balance-card {
    background: #f8fafc;
    border: 1px solid var(--hrms-line);
    border-radius: var(--hrms-radius);
    padding: 20px;
    text-align: center;
}

.hrms-balance-card h4 {
    margin: 0 0 10px;
    color: var(--hrms-heading);
    font-size: 14px;
}

.hrms-balance-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.hrms-taken { color: var(--hrms-danger); font-weight: 600; }
.hrms-remaining { color: var(--hrms-success); font-weight: 600; }

.hrms-balance-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.hrms-balance-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Profile Page */
.hrms-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(130deg, #101f3c 0%, #16305e 55%, #2563eb 135%);
    border-radius: var(--hrms-radius);
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 10px 26px -10px rgba(16, 31, 60, 0.5);
}

.hrms-profile-avatar i {
    font-size: 78px;
    opacity: 0.92;
}

.hrms-profile-avatar .hrms-profile-photo {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.75);
    display: block;
    background: #fff;
}

.hrms-profile-basic h3 {
    margin: 0 0 5px;
    font-size: 23px;
    color: #fff;
}

.hrms-profile-basic p {
    margin: 3px 0;
    opacity: 0.9;
}

/* Filter Form */
.hrms-filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hrms-filter-form select,
.hrms-filter-form input {
    padding: 9px 13px;
    border: 1.5px solid var(--hrms-border);
    border-radius: 8px;
    font-size: 13.5px;
    background: #fff;
    color: var(--hrms-ink);
}

/* Payslip Page */
.hrms-payslips-page .hrms-table td strong {
    color: var(--hrms-success-dark);
}

/* Responsive: tablet & below */
@media (max-width: 768px) {
    .hrms-dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hrms-flex-row {
        flex-direction: column;
    }

    .hrms-form-grid {
        grid-template-columns: 1fr;
    }

    .hrms-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .hrms-section, .hrms-wrap .hrms-section {
        padding: 18px;
    }

    .hrms-table {
        font-size: 12.5px;
    }

    .hrms-table th,
    .hrms-table td {
        padding: 9px 10px;
        white-space: normal;
    }

    .hrms-checkin-btn {
        width: 122px;
        height: 122px;
        font-size: 16px !important;
        padding: 15px !important;
    }

    .hrms-employee-dashboard .hrms-welcome,
    .hrms-admin-portal .hrms-welcome {
        padding: 20px;
    }
}

/* Responsive: phones */
@media (max-width: 480px) {
    .hrms-dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }

    .hrms-card {
        flex-direction: column;
        text-align: center;
        padding: 16px 10px;
    }

    .hrms-card-icon {
        margin-right: 0;
        margin-bottom: 10px;
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .hrms-card-info h3 {
        font-size: 21px;
    }

    .hrms-card-info p {
        font-size: 11.5px;
    }

    .hrms-table {
        font-size: 11.5px;
        display: block;
        overflow-x: auto;
    }

    .hrms-table th,
    .hrms-table td {
        padding: 8px 8px;
        white-space: nowrap;
    }

    .hrms-btn-large {
        padding: 13px 26px;
        font-size: 15px;
    }

    .hrms-login-form {
        margin: 24px 12px;
        padding: 28px 22px;
    }

    .hrms-section, .hrms-wrap .hrms-section {
        padding: 14px;
        margin: 14px 0;
    }
}

/* Admin Wrap Override */
.hrms-wrap .wp-list-table {
    margin-top: 10px;
}

.hrms-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hrms-wrap h1 i {
    color: var(--hrms-primary);
}

/* Dashboard Sections Layout */
.hrms-dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1100px) {
    .hrms-dashboard-sections {
        grid-template-columns: 1fr;
    }
}

/* Action Button Spacing */
.wp-list-table .button {
    margin-right: 5px;
}

.wp-list-table .button:last-child {
    margin-right: 0;
}

/* ============================================
   Portal Shell — sidebar + topbar layout
   ============================================ */
.hrms-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--hrms-bg);
    box-sizing: border-box;
    overflow-x: hidden;
}

.hrms-sidebar {
    width: var(--hrms-sidebar-w);
    flex: 0 0 var(--hrms-sidebar-w);
    display: flex;
    flex-direction: column;
    background: linear-gradient(190deg, var(--hrms-sidebar-bg-top) 0%, var(--hrms-sidebar-bg) 65%);
    color: var(--hrms-sidebar-text);
    padding: 22px 14px 20px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.hrms-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hrms-sidebar-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--hrms-accent), var(--hrms-accent-dark));
    color: #1a1300;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.hrms-sidebar-brand-text {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.hrms-sidebar-brand-text small {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--hrms-sidebar-text);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.hrms-frontend-nav,
.hrms-admin-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    padding: 6px 0 0;
    margin: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.hrms-nav-btn,
.hrms-admin-nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--hrms-sidebar-text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.hrms-nav-btn i,
.hrms-admin-nav-btn i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hrms-nav-btn:hover,
.hrms-admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    transform: none;
}

.hrms-nav-btn.hrms-nav-active,
.hrms-admin-nav-btn.hrms-nav-active {
    background: var(--hrms-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 95, 239, 0.38);
}

.hrms-nav-btn.hrms-nav-active::before,
.hrms-admin-nav-btn.hrms-nav-active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--hrms-accent);
}

.hrms-nav-btn.hrms-nav-logout,
.hrms-admin-nav-btn.hrms-nav-logout {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #f3a5a5;
}

.hrms-nav-btn.hrms-nav-logout:hover,
.hrms-admin-nav-btn.hrms-nav-logout:hover {
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
}

.hrms-shell-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hrms-shell-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    background: #fff;
    border-bottom: 1px solid var(--hrms-line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.hrms-shell-topbar h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--hrms-heading);
    line-height: 1.25;
}

.hrms-shell-topbar-meta {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--hrms-muted);
}

.hrms-shell-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrms-text);
    flex-shrink: 0;
}

.hrms-shell-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.hrms-shell-content {
    padding: 26px 32px 48px;
}

/* Filter Bar */
.hrms-filter-bar {
    background: #fff;
    border: 1px solid var(--hrms-line);
    padding: 14px 18px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: var(--hrms-shadow-sm);
}

/* Payslip Download Button */
.hrms-payslips-page .hrms-btn-small {
    text-decoration: none;
}

/* Responsive shell */
@media (max-width: 900px) {
    .hrms-shell {
        flex-direction: column;
    }
    .hrms-sidebar {
        width: 100%;
        flex: 0 0 auto;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hrms-sidebar-brand {
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.09);
        padding: 4px 14px 4px 6px;
        margin: 0 8px 0 0;
        flex-shrink: 0;
    }
    .hrms-sidebar-brand-text small { display: none; }
    .hrms-frontend-nav,
    .hrms-admin-nav {
        flex-direction: row;
        padding: 0;
        gap: 4px;
    }
    .hrms-nav-btn.hrms-nav-active::before,
    .hrms-admin-nav-btn.hrms-nav-active::before {
        display: none;
    }
    .hrms-nav-btn.hrms-nav-logout,
    .hrms-admin-nav-btn.hrms-nav-logout {
        margin: 0 0 0 4px;
        padding: 10px 14px;
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 10px;
        flex-shrink: 0;
    }
    .hrms-shell-topbar {
        padding: 14px 16px;
    }
    .hrms-shell-content {
        padding: 18px 16px 36px;
    }
}

@media (max-width: 520px) {
    .hrms-shell-user span { display: none; }
}

/* ============================================
   Frontend Admin Portal - wp-admin component overrides
   ============================================ */
.hrms-admin-page {
    background: var(--hrms-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.06);
}

.hrms-admin-page .wrap {
    margin: 0;
    padding: 0;
    background: transparent;
}

.hrms-admin-page .wrap > h1,
.hrms-admin-page .wrap h1 {
    font-size: 21px;
    color: var(--hrms-heading);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hrms-line);
}

.hrms-admin-page h1,
.hrms-admin-page h2,
.hrms-admin-page h3 {
    font-family: inherit;
}

.hrms-admin-page .page-title-action {
    display: inline-block;
    margin: 0 4px 8px 0;
    padding: 8px 15px;
    background: var(--hrms-primary);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.hrms-admin-page .page-title-action:hover {
    background: var(--hrms-primary-dark);
    color: #fff !important;
}

.hrms-admin-page .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--hrms-text);
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.hrms-admin-page .button:hover {
    background: #f0f6ff;
    color: var(--hrms-primary);
}

.hrms-admin-page .button-primary,
.hrms-admin-page .button.button-primary {
    background: var(--hrms-primary);
    border-color: var(--hrms-primary-dark);
    color: #fff;
}

.hrms-admin-page .button-primary:hover,
.hrms-admin-page .button.button-primary:hover {
    background: var(--hrms-primary-dark);
    color: #fff;
}

.hrms-admin-page .button.button-small {
    padding: 4px 11px;
    font-size: 12px;
}

.hrms-admin-page .updated,
.hrms-admin-page .error,
.hrms-admin-page .notice {
    margin: 10px 0 15px 0;
    padding: 11px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
}

.hrms-admin-page .updated {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.hrms-admin-page .error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.hrms-admin-page .wp-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: 10px;
    margin: 10px 0;
    font-size: 13px;
    box-shadow: var(--hrms-shadow-sm);
}

.hrms-admin-page .wp-list-table th,
.hrms-admin-page .wp-list-table td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--hrms-line);
    font-size: 13px;
    vertical-align: middle;
}

.hrms-admin-page .wp-list-table thead th {
    background: #f8fafc;
    color: #55637a;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--hrms-border);
}

.hrms-admin-page .wp-list-table thead tr th:first-child { border-top-left-radius: 9px; }
.hrms-admin-page .wp-list-table thead tr th:last-child { border-top-right-radius: 9px; }
.hrms-admin-page .wp-list-table tbody tr:last-child td:first-child { border-bottom-left-radius: 9px; }
.hrms-admin-page .wp-list-table tbody tr:last-child td:last-child { border-bottom-right-radius: 9px; }
.hrms-admin-page .wp-list-table tbody tr:last-child td { border-bottom: none; }

.hrms-admin-page .wp-list-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.hrms-admin-page .form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: 10px;
    margin: 12px 0;
    box-shadow: var(--hrms-shadow-sm);
}

.hrms-admin-page .form-table th {
    width: 220px;
    text-align: left;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrms-text);
    background: #f8fafc;
    border-bottom: 1px solid var(--hrms-line);
    vertical-align: top;
}

.hrms-admin-page .form-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--hrms-line);
    font-size: 13px;
}

.hrms-admin-page .form-table tr:last-child th,
.hrms-admin-page .form-table tr:last-child td {
    border-bottom: none;
}

.hrms-admin-page .form-table input[type="text"],
.hrms-admin-page .form-table input[type="email"],
.hrms-admin-page .form-table input[type="number"],
.hrms-admin-page .form-table input[type="password"],
.hrms-admin-page .form-table input[type="date"],
.hrms-admin-page .form-table input[type="tel"],
.hrms-admin-page .form-table select,
.hrms-admin-page .form-table textarea {
    width: 100%;
    max-width: 420px;
    padding: 9px 12px;
    border: 1.5px solid var(--hrms-border);
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: var(--hrms-ink);
}

.hrms-admin-page .form-table textarea {
    min-height: 80px;
}

.hrms-admin-page .form-table .regular-text {
    width: 100%;
    max-width: 420px;
}

.hrms-admin-page .form-table .large-text {
    width: 100%;
}

.hrms-admin-page .submit {
    margin: 15px 0 0 0;
}

.hrms-admin-page .submit .button {
    font-weight: 600;
}

.hrms-admin-page .search-box {
    margin: 10px 0 15px 0;
}

.hrms-admin-page .search-box input[type="search"],
.hrms-admin-page .search-box input[type="text"] {
    padding: 8px 11px;
    border: 1.5px solid var(--hrms-border);
    border-radius: 8px;
    font-size: 13px;
}

.hrms-admin-page .tablenav {
    margin: 12px 0;
    font-size: 13px;
    color: var(--hrms-muted);
}

.hrms-admin-page .tablenav .pages,
.hrms-admin-page .tablenav .displaying-num {
    padding: 6px 0;
}

.hrms-admin-page .tablenav a {
    color: var(--hrms-primary);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    margin-right: 4px;
}

.hrms-admin-page .tablenav a:hover {
    background: #eff6ff;
}

.hrms-admin-page .tablenav .current {
    background: var(--hrms-primary);
    color: #fff;
    border-color: var(--hrms-primary-dark);
}

.hrms-admin-page .tablenav-pages {
    float: none;
}

.hrms-admin-page .postbox {
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: var(--hrms-radius);
    padding: 18px;
    margin: 12px 0;
}

.hrms-admin-page .postbox h2,
.hrms-admin-page .postbox h3 {
    margin-top: 0;
}

.hrms-admin-page .inside {
    padding: 0;
}

.hrms-admin-page .alignright {
    text-align: right;
}

.hrms-admin-page .alignleft {
    text-align: left;
}

.hrms-admin-page .avatar {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .hrms-admin-page {
        padding: 12px;
    }
    .hrms-admin-page .form-table th {
        width: 118px;
        font-size: 12px;
        padding: 10px;
    }
    .hrms-admin-page .form-table td {
        padding: 10px;
    }
    .hrms-admin-page .wp-list-table th,
    .hrms-admin-page .wp-list-table td {
        padding: 8px 9px;
        font-size: 12px;
    }
}

/* ============================================
   Frontend Admin Portal - Professional Polish
   ============================================ */

/* Portal header banner (consistent on every section page) */
.hrms-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(130deg, #101f3c 0%, #16305e 55%, #2563eb 135%);
    color: #fff;
    padding: 22px 26px;
    border-radius: var(--hrms-radius);
    margin-bottom: 18px;
    box-shadow: 0 12px 30px -12px rgba(16, 31, 60, 0.55);
}

.hrms-portal-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hrms-portal-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
}

.hrms-portal-header h2 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.hrms-portal-header-sep {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin: 0 4px;
}

.hrms-portal-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.hrms-portal-header p strong {
    color: #fff;
}

/* Page title bar: heading + action button on one row */
.hrms-admin-page .wrap > h1,
.hrms-admin-page .wrap h1.wp-heading-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: var(--hrms-heading);
    margin: 0 12px 16px 0;
    padding: 13px 20px;
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: 10px;
    box-shadow: var(--hrms-shadow-sm);
}

.hrms-admin-page .wrap > h1 i,
.hrms-admin-page .wrap h1 i {
    color: var(--hrms-primary);
}

.hrms-admin-page .wrap > .page-title-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    margin: 0 0 16px 0;
    padding: 9px 16px;
    background: linear-gradient(135deg, #2f6bee, #2563eb);
    color: #fff !important;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hrms-admin-page .wrap > .page-title-action:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    transform: translateY(-1px);
}

.hrms-admin-page hr.wp-header-end {
    display: none;
}

/* Section header (h2 standalone inside .hrms-section) */
.hrms-admin-page .hrms-section > h2 {
    font-size: 16px;
    color: var(--hrms-heading);
    border-bottom: 1px solid var(--hrms-line);
    padding-bottom: 10px;
}

/* Action buttons - color coded by intent */
.hrms-admin-page .wp-list-table .button,
.hrms-admin-page .button.button-small {
    justify-content: center;
    min-width: 34px;
    padding: 5px 10px;
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.hrms-admin-page .wp-list-table .button[title="View"],
.hrms-admin-page .button[title="View"],
.hrms-admin-page .wp-list-table a.button[title*="Download"],
.hrms-admin-page .button[title*="Download"] {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.hrms-admin-page .wp-list-table .button[title="Edit"],
.hrms-admin-page .button[title="Edit"] {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #047857;
}

.hrms-admin-page .wp-list-table .button[title="Deactivate"],
.hrms-admin-page .button[title="Deactivate"] {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #b45309;
}

.hrms-admin-page .wp-list-table .button[title="Delete"],
.hrms-admin-page .button[title="Delete"],
.hrms-admin-page .button[title*="Delete All"],
.hrms-admin-page .wp-list-table a.button[title*="Delete"] {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.hrms-admin-page .wp-list-table .button:hover,
.hrms-admin-page .button.button-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

/* Table row hover refinement */
.hrms-admin-page .wp-list-table tbody tr:hover td {
    background: #eef5ff;
}

/* Helper text */
.hrms-admin-page .description {
    color: #7c8aa0;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}

/* Section divider rows in forms (Personal Information etc.) */
.hrms-admin-page .form-table th[colspan="2"] {
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}

.hrms-admin-page .form-table th[colspan="2"] h2 {
    margin: 0;
    font-size: 14.5px;
    color: #1d4ed8;
}

/* Inputs: focus + consistency */
.hrms-admin-page .form-table input[type="text"]:focus,
.hrms-admin-page .form-table input[type="email"]:focus,
.hrms-admin-page .form-table input[type="number"]:focus,
.hrms-admin-page .form-table input[type="password"]:focus,
.hrms-admin-page .form-table input[type="date"]:focus,
.hrms-admin-page .form-table input[type="tel"]:focus,
.hrms-admin-page .form-table select:focus,
.hrms-admin-page .form-table textarea:focus {
    border-color: var(--hrms-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.hrms-admin-page .form-table select {
    padding: 9px 12px;
}

/* Filter / search bars used inside admin pages */
.hrms-admin-page .hrms-filter-bar,
.hrms-admin-page .wrap form[method="get"] {
    background: #fff;
    border: 1px solid var(--hrms-line);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 14px 0;
}

.hrms-admin-page .hrms-filter-bar select,
.hrms-admin-page .wrap form[method="get"] select,
.hrms-admin-page .wrap form[method="get"] input[type="text"],
.hrms-admin-page .wrap form[method="get"] input[type="search"],
.hrms-admin-page .wrap form[method="get"] input[type="date"] {
    padding: 8px 11px;
    border: 1.5px solid var(--hrms-border);
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}

/* Big submit buttons (approve/reject/save) */
.hrms-admin-page input[type="submit"].button {
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 8px;
    cursor: pointer;
}

.hrms-admin-page input[type="submit"].button-primary {
    background: var(--hrms-primary);
    border-color: var(--hrms-primary-dark);
    color: #fff;
}

.hrms-admin-page input[type="submit"].button-primary:hover {
    background: var(--hrms-primary-dark);
}

/* Credentials success box (employee added) */
.hrms-admin-page .hrms-credentials-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}

.hrms-admin-page .hrms-credentials-box strong {
    color: #065f46;
}

/* Cards inside admin sections */
.hrms-admin-page .hrms-dashboard-cards .hrms-card {
    border: 1px solid var(--hrms-line);
    box-shadow: var(--hrms-shadow-sm);
}

/* Keep the wrapper clean on smaller screens */
@media (max-width: 768px) {
    .hrms-portal-header {
        padding: 16px 18px;
    }
    .hrms-portal-header h2 {
        font-size: 16px;
    }
    .hrms-admin-page .wrap > h1,
    .hrms-admin-page .wrap h1.wp-heading-inline {
        font-size: 17px;
        display: block;
        margin-right: 0;
    }
}

/* ===== Employer Login — split layout ===== */
.hrms-elg {
    display: flex;
    max-width: 960px;
    margin: 40px auto;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 64px -18px rgba(15, 23, 42, 0.28);
}
.hrms-elg-brand {
    flex: 1 1 46%;
    background: linear-gradient(140deg, #101f3c 0%, #16305e 55%, #2563eb 140%);
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hrms-elg-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
}
.hrms-elg-brand h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
}
.hrms-elg-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}
.hrms-elg-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}
.hrms-elg-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}
.hrms-elg-points li i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.hrms-elg-panel {
    flex: 1 1 54%;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hrms-elg-panel h3 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--hrms-heading);
}
.hrms-elg-sub {
    margin: 0 0 26px;
    color: var(--hrms-muted);
    font-size: 14px;
}
.hrms-elg-field {
    margin-bottom: 18px;
}
.hrms-elg-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--hrms-text);
    margin-bottom: 7px;
}
.hrms-elg-field label i {
    color: var(--hrms-primary);
    margin-right: 6px;
}
.hrms-elg-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--hrms-border);
    border-radius: 10px;
    font-size: 15px;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hrms-elg-field input:focus {
    outline: none;
    border-color: var(--hrms-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.hrms-elg-btn {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f6bee, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.hrms-elg-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.42);
}
.hrms-elg-alt {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hrms-line);
    text-align: center;
    font-size: 14px;
    color: var(--hrms-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.hrms-elg-alt a {
    color: var(--hrms-primary-dark);
    font-weight: 600;
    text-decoration: none;
}
.hrms-elg-alt a:hover {
    text-decoration: underline;
}
@media (max-width: 820px) {
    .hrms-elg {
        flex-direction: column;
        margin: 20px 12px;
    }
    .hrms-elg-brand {
        padding: 32px 28px;
    }
    .hrms-elg-panel {
        padding: 32px 28px;
    }
}

/* ===== Auth screens — Employee & Employer login ===== */
.hrms-auth {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 40px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
    border-radius: 6px;
}
.hrms-auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 42px 38px 34px;
    box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.22), 0 6px 20px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    box-sizing: border-box;
}
.hrms-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}
.hrms-auth--employer::before {
    background: linear-gradient(90deg, #2f6bee, #2563eb);
}
.hrms-auth--employee::before {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}
.hrms-auth-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.hrms-auth--employer .hrms-auth-logo {
    background: linear-gradient(135deg, #2f6bee, #2563eb);
}
.hrms-auth--employee .hrms-auth-logo {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}
.hrms-auth-card h1 {
    margin: 0 0 4px;
    font-size: 24px;
    color: var(--hrms-ink);
    line-height: 1.2;
}
.hrms-auth-sub {
    margin: 0 0 26px;
    color: var(--hrms-muted);
    font-size: 14px;
}
.hrms-auth-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
    line-height: 1.45;
}
.hrms-auth-field {
    margin-bottom: 17px;
}
.hrms-auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hrms-text);
    margin-bottom: 7px;
}
.hrms-auth-input {
    position: relative;
}
.hrms-auth-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.hrms-auth-input input {
    width: 100%;
    padding: 13px 15px 13px 41px;
    border: 1.5px solid var(--hrms-border);
    border-radius: 11px;
    font-size: 15px;
    background: #f8fafc;
    color: var(--hrms-ink);
    box-sizing: border-box;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.hrms-auth-input input:focus {
    outline: none;
    background: #fff;
    border-color: var(--hrms-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.hrms-auth-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border: 0;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.hrms-auth--employer .hrms-auth-btn {
    background: linear-gradient(135deg, #2f6bee, #2563eb);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.35);
}
.hrms-auth--employee .hrms-auth-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.32);
}
.hrms-auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}
.hrms-auth-links {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hrms-line);
    text-align: center;
    font-size: 13.5px;
    color: var(--hrms-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hrms-auth-links a {
    color: var(--hrms-primary-dark);
    font-weight: 600;
    text-decoration: none;
}
.hrms-auth-links a:hover {
    text-decoration: underline;
}
.hrms-auth-sep {
    color: #cbd5e1;
}
.hrms-auth-foot {
    margin-top: 26px;
    font-size: 12.5px;
    color: #94a3b8;
    text-align: center;
}
@media (max-width: 520px) {
    .hrms-auth {
        padding: 36px 10px 28px;
    }
    .hrms-auth-card {
        padding: 34px 24px 28px;
    }
}
