/* ============================================================
   Malidegao HRMO Payroll System — Modernized Green/Yellow Theme
   Font: Plus Jakarta Sans (headings) + DM Sans (body) via Google Fonts CDN
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:root {
    --green-dark: #14532d;
    --green-main: #2e8b45;
    --green-light: #6bbf59;
    --yellow-main: #d9c42a;
    --yellow-light: #f2e94e;
    --bg-soft: #f5f8f1;
    --text-dark: #1f2a22;
    --text-muted: #64756a;
    --white: #ffffff;
    --danger: #c0392b;
    --border-soft: #e3ebe0;
    --shadow: 0 6px 20px rgba(20, 83, 45, 0.10);
    --shadow-hover: 0 10px 28px rgba(20, 83, 45, 0.16);
    --radius: 14px;
}

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

body {
    font-family: 'DM Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-soft);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand h2 {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* ---------- Login Page ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 45%, var(--yellow-main) 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    overflow: hidden;
}

.login-card .login-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main), var(--yellow-main));
    padding: 36px 24px;
    text-align: center;
    color: var(--white);
}

.login-card .login-header h1 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.login-card .login-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.login-kicker {
    display: block;
    margin-top: 14px;
    font-size: 0.7rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    opacity: 0.78;
}

.login-help {
    text-align: center;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.login-card form {
    padding: 30px 28px 34px;
}

.login-card .badge-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-main);
    box-shadow: 0 0 0 4px rgba(46,139,69,0.12);
}

.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input {
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
}

.password-toggle-btn:hover { color: var(--green-main); }

.btn {
    display: inline-block;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-primary {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main), var(--yellow-main));
    color: var(--white);
    width: 100%;
    padding: 13px;
}

.btn-secondary {
    background: var(--white);
    color: var(--green-dark);
    border: 1.5px solid var(--green-main);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-sm { padding: 7px 13px; font-size: 0.8rem; }

.error-msg {
    background: #fdecea;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    border-left: 4px solid var(--danger);
}

.success-msg {
    background: #eaf7ea;
    color: var(--green-dark);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    border-left: 4px solid var(--green-main);
}

/* ---------- App Shell ---------- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-main) 55%, var(--yellow-main) 100%);
    color: var(--white);
    padding: 26px 0;
    flex-shrink: 0;
}

.sidebar .brand {
    padding: 0 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 18px;
}

.sidebar .brand h2 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; }
.sidebar .brand span { font-size: 0.75rem; opacity: 0.85; }

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    border-left: 3px solid transparent;
    transition: background .15s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255,255,255,0.16);
    border-left-color: var(--yellow-light);
}

.sidebar .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.main-content {
    flex: 1;
    padding: 30px 34px;
    max-width: 100%;
    overflow-x: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar h1 { font-size: 1.45rem; color: var(--green-dark); font-weight: 600; }
.topbar .subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Cards / Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--green-main);
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}

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

.stat-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 90px; height: 90px;
    background: linear-gradient(135deg, transparent, rgba(217,196,42,0.15));
    border-radius: 0 0 0 90px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--green-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-caption {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.stat-card-amber { border-top-color: var(--yellow-main); }
.stat-card-blue { border-top-color: #4d86b8; }
.stat-card-purple { border-top-color: #8366b3; }

.portal-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    background: linear-gradient(120deg, #143f2b, #2e8b45 70%, #d9c42a);
    color: white;
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
}

.portal-welcome h2 {
    color: white;
    border: none;
    padding: 0;
    margin: 7px 0 8px;
    font-size: 1.25rem;
}

.portal-welcome p {
    max-width: 620px;
    line-height: 1.6;
    opacity: 0.9;
    font-size: 0.88rem;
}

.eyebrow {
    display: inline-block;
    color: var(--green-main);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.portal-welcome .eyebrow { color: #f6e878; }

.portal-id {
    min-width: 155px;
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,0.35);
}

.portal-id span, .portal-id strong {
    display: block;
}

.portal-id span { font-size: 0.72rem; opacity: 0.75; margin-bottom: 5px; }
.portal-id strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; }

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.section-heading-row h2 { margin-top: 5px; }
.text-link { color: var(--green-main); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--green-dark); }
.muted { color: var(--text-muted); font-size: 0.84rem; line-height: 1.6; }
.snapshot-period { color: var(--text-muted); font-size: 0.82rem; margin: -3px 0 15px; }

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-metrics div {
    background: var(--bg-soft);
    border-radius: 9px;
    padding: 13px 10px;
}

.mini-metrics strong, .mini-metrics span { display: block; }
.mini-metrics strong { color: var(--green-dark); font-size: 1.2rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.mini-metrics span { color: var(--text-muted); font-size: 0.7rem; margin-top: 3px; }
.compact-button { display: inline-block; width: auto; margin-top: 18px; }
.record-count { color: var(--text-muted); font-size: 0.78rem; padding-top: 5px; }
.empty-state { color: var(--text-muted); padding: 12px 0; font-size: 0.85rem; }
.net-pay-value { color: var(--green-dark); }
.table-scroll { overflow-x: auto; }

.account-username {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.72rem;
}

.account-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.account-summary h2 { margin-bottom: 6px; }
.account-summary .muted { margin: 0; }
.account-summary > div:last-child { text-align: right; }
.account-summary .badge { margin-left: 8px; }
.account-summary .badge + .muted { margin-top: 7px; font-size: 0.75rem; }

.account-form-card { max-width: 820px; }
.account-intro { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.account-intro h2 { border: none; padding: 0; margin: 2px 0 6px; }
.account-icon {
    background: #e4f1e6;
    color: var(--green-dark);
    border-radius: 12px;
    padding: 12px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.form-hint { color: var(--text-muted); display: block; font-size: 0.72rem; margin-top: 5px; }
.profile-list { display: grid; gap: 2px; }
.profile-list div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.profile-list span { color: var(--text-muted); font-size: 0.8rem; }
.profile-list strong { text-align: right; font-size: 0.82rem; }
.settings-note { margin-top: 18px; font-size: 0.76rem; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}

.card h2 {
    font-size: 1.05rem;
    color: var(--green-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-soft);
    font-weight: 600;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead th {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    color: var(--white);
    text-align: left;
    padding: 13px 15px;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

thead th:first-child { border-radius: 10px 0 0 0; }
thead th:last-child { border-radius: 0 10px 0 0; }

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-soft);
}

tbody tr:hover { background: #f8fbf3; }

.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-active { background: #e2f4e2; color: var(--green-dark); }
.badge-inactive { background: #fde8e8; color: var(--danger); }
.badge-status { background: #fdf6d8; color: #8a7c0f; }
.badge-cos { background: #e3f0fb; color: #1a5276; }
.badge-casual { background: #fdf0e3; color: #935116; }
.badge-jo { background: #ecdff8; color: #6c3483; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Filters / toolbar ---------- */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.toolbar .search-box input {
    padding: 10px 16px;
    border-radius: 24px;
    border: 1.5px solid var(--border-soft);
    min-width: 240px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .portal-welcome { align-items: flex-start; flex-direction: column; }
    .portal-id { border-left: none; border-top: 1px solid rgba(255,255,255,0.35); padding: 14px 0 0; width: 100%; }
    .account-summary { align-items: flex-start; flex-direction: column; }
    .account-summary > div:last-child { text-align: left; }
    .account-summary .badge { margin-left: 0; }
}

/* ---------- Payslip preview ---------- */
.payslip-box {
    border: 2px dashed var(--green-light);
    border-radius: var(--radius);
    padding: 22px;
    background: #fbfdf6;
}

/* ---------- Document list ---------- */
.doc-category-group {
    margin-bottom: 20px;
}

.doc-category-group h3 {
    font-size: 0.9rem;
    color: var(--green-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-soft);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.86rem;
}

.doc-item .doc-name { font-weight: 500; }
.doc-item .doc-meta { color: var(--text-muted); font-size: 0.78rem; }

/* ---------- Chart containers ---------- */
.chart-card canvas { max-width: 100%; }

/* ---------- Print preview page ---------- */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .print-payslip { box-shadow: none; border: 1px solid #333; }
}

/* ---------- HR Landing Page ---------- */
.landing-page {
    --ink: #17382b;
    --ink-soft: #557166;
    --cream: #f8f8f2;
    --mint: #dfeee4;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--cream);
    color: var(--ink);
}

.landing-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background-image: radial-gradient(rgba(23,56,43,.12) .7px, transparent .7px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, black, transparent 55%);
}

.landing-noise {
    position: absolute;
    inset: 0;
    opacity: .035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    animation: orbFloat 9s ease-in-out infinite;
}

.landing-orb-one {
    width: 340px;
    height: 340px;
    top: 70px;
    right: -120px;
    background: rgba(218, 191, 45, .17);
}

.landing-orb-two {
    width: 180px;
    height: 180px;
    top: 450px;
    left: -70px;
    background: rgba(108, 181, 116, .16);
    animation-delay: -4s;
}

.landing-nav,
.landing-main,
.landing-footer {
    width: min(1160px, calc(100% - 72px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-lockup > span:last-child { display: flex; flex-direction: column; }
.brand-lockup strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .92rem; letter-spacing: -.2px; }
.brand-lockup small { color: var(--ink-soft); font-size: .65rem; letter-spacing: .7px; text-transform: uppercase; margin-top: 2px; }

.brand-mark {
    position: relative;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    padding: 7px;
    border-radius: 11px;
    background: var(--ink);
    box-shadow: 0 7px 18px rgba(23,56,43,.18);
}

.brand-mark span {
    display: block;
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: #f0d95d;
}

.brand-mark span:nth-child(1) { height: 45%; opacity: .7; }
.brand-mark span:nth-child(2) { height: 72%; }
.brand-mark span:nth-child(3) { height: 100%; opacity: .85; }

.landing-nav-right { display: flex; align-items: center; gap: 28px; }
.nav-context { color: var(--ink-soft); font-size: .75rem; }
.nav-link { color: var(--ink); font-weight: 700; font-size: .8rem; }
.nav-link span { color: #b99e16; margin-left: 5px; }
.nav-link:hover { color: #8e7910; }

.landing-main { padding-bottom: 75px; }

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(420px, .9fr);
    gap: 75px;
    align-items: center;
    min-height: 480px;
    padding: 48px 0 62px;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #9b8512;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}

.landing-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #c7ad28;
}

.landing-hero h1 {
    max-width: 590px;
    margin: 20px 0 19px;
    color: var(--ink);
    font-size: clamp(2.7rem, 5.4vw, 4.65rem);
    line-height: 1.04;
    letter-spacing: -2.8px;
    font-weight: 800;
    animation: revealUp .8s both;
}

.landing-hero h1 em,
.auth-copy h1 em {
    color: #2f8b4c;
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: -1px;
}

.landing-intro {
    max-width: 485px;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
    animation: revealUp .8s .12s both;
}

.landing-proof {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    animation: revealUp .8s .22s both;
}

.landing-proof > div { display: flex; align-items: center; gap: 8px; }
.landing-proof strong { color: #bd9f11; font-family: 'Plus Jakarta Sans'; font-size: .66rem; }
.landing-proof span { color: var(--ink-soft); font-size: .7rem; line-height: 1.2; }

.landing-visual {
    min-height: 390px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: revealUp .9s .18s both;
}

.visual-halo {
    position: absolute;
    width: 355px;
    height: 355px;
    border-radius: 50%;
    background: #e7f0e5;
    box-shadow: inset 0 0 0 1px rgba(47,139,76,.08), 0 0 0 18px rgba(231,240,229,.45);
    animation: haloPulse 5s ease-in-out infinite;
}

.visual-card {
    position: absolute;
    width: 295px;
    height: 315px;
    border-radius: 19px;
    transform: rotate(6deg);
}

.visual-card-back {
    background: #c9dfcf;
    transform: translate(20px, 15px) rotate(9deg);
    opacity: .72;
}

.visual-card-main {
    position: relative;
    padding: 23px;
    color: white;
    background: linear-gradient(145deg, #163d2d, #2d8650);
    box-shadow: 0 20px 42px rgba(28,83,50,.25);
    transform: rotate(-5deg);
    z-index: 1;
    overflow: hidden;
}

.visual-card-main::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -45px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    box-shadow: 0 0 0 19px rgba(255,255,255,.05), 0 0 0 39px rgba(255,255,255,.04);
}

.visual-card-top { display: flex; align-items: center; gap: 7px; font-size: .62rem; opacity: .76; }
.visual-card-top b { margin-left: auto; letter-spacing: 2px; font-weight: 400; }
.visual-status { width: 6px; height: 6px; border-radius: 50%; background: #e8d343; box-shadow: 0 0 11px #e8d343; }
.visual-title { margin-top: 55px; font-size: 1.42rem; line-height: 1.14; font-family: 'Plus Jakarta Sans'; font-weight: 700; }
.visual-title em { color: #f1df70; font-family: 'DM Serif Display'; font-size: 1.56rem; font-weight: 400; }
.visual-bars { display: flex; align-items: flex-end; gap: 5px; height: 47px; margin-top: 35px; }
.visual-bars span { width: 17px; border-radius: 4px 4px 0 0; background: rgba(255,255,255,.28); }
.visual-bars span:nth-child(1) { height: 48%; }
.visual-bars span:nth-child(2) { height: 75%; background: #dfcf4c; }
.visual-bars span:nth-child(3) { height: 100%; background: rgba(255,255,255,.65); }
.visual-summary { display: flex; gap: 26px; margin-top: 20px; }
.visual-summary b, .visual-summary small { display: block; }
.visual-summary b { font-family: 'Plus Jakarta Sans'; font-size: 1.05rem; }
.visual-summary small { margin-top: 2px; color: rgba(255,255,255,.66); font-size: .58rem; }

.visual-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px 11px 11px;
    border: 1px solid rgba(23,56,43,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 14px 25px rgba(23,56,43,.13);
    z-index: 2;
    animation: floatCard 5s ease-in-out infinite;
}

.visual-float b, .visual-float small { display: block; }
.visual-float b { color: var(--ink); font-size: .7rem; }
.visual-float small { color: var(--ink-soft); font-size: .59rem; margin-top: 3px; }
.visual-float-top { top: 27px; right: -9px; }
.visual-float-bottom { bottom: 25px; left: -25px; animation-delay: -2s; }
.float-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #237342; background: #dfefe3; font-weight: 800; }
.float-icon-gold { color: #8e7710; background: #f6efc9; }

.access-section { padding-top: 21px; }
.access-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 19px; }
.access-heading h2 { margin-top: 9px; font-size: 1.35rem; letter-spacing: -.5px; }
.access-heading p { max-width: 350px; color: var(--ink-soft); font-size: .79rem; line-height: 1.55; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 23px;
    min-height: 196px;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(23,56,43,.08);
    border-radius: 17px;
    background: rgba(255,255,255,.73);
    box-shadow: 0 9px 25px rgba(23,56,43,.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.role-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(47,139,76,.10);
    transition: transform .4s ease;
}

.role-card:hover {
    border-color: rgba(47,139,76,.3);
    box-shadow: 0 17px 34px rgba(23,56,43,.12);
    transform: translateY(-5px);
}

.role-card:hover::after { transform: scale(1.35); }
.role-card-art { position: relative; flex: 0 0 118px; height: 136px; display: grid; place-items: center; }
.role-card-employee { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(224,240,227,.9)); }
.role-card-admin { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(246,241,211,.9)); }
.art-ring { position: absolute; width: 105px; height: 105px; border: 1px solid #a2caab; border-radius: 50%; }
.art-ring::before, .art-ring::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(47,139,76,.3); }
.art-ring::before { inset: 13px; }
.art-ring::after { inset: 28px; background: rgba(255,255,255,.44); }
.art-person, .art-admin { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 19px; color: #fff; background: #2f8b4c; font-family: 'Plus Jakarta Sans'; font-size: .75rem; font-weight: 800; box-shadow: 0 8px 17px rgba(47,139,76,.25); transform: rotate(-8deg); }
.art-spark { position: absolute; top: 10px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: #d7be2e; box-shadow: 0 0 0 5px rgba(215,190,46,.14); }
.admin-grid { position: absolute; inset: 9px; opacity: .55; background-image: linear-gradient(#d9c95b 1px, transparent 1px), linear-gradient(90deg, #d9c95b 1px, transparent 1px); background-size: 17px 17px; transform: rotate(9deg); }
.art-admin { background: #b59d1a; transform: rotate(8deg); box-shadow: 0 8px 17px rgba(181,157,26,.25); }
.admin-dot { position: absolute; width: 12px; height: 12px; left: 4px; bottom: 14px; border-radius: 50%; background: #2f8b4c; }
.role-card-copy { position: relative; z-index: 1; }
.role-number { color: #8b891e; font-size: .62rem; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.role-card h3 { margin: 8px 0 7px; color: var(--ink); font-size: 1.05rem; }
.role-card p { max-width: 255px; color: var(--ink-soft); font-size: .76rem; line-height: 1.55; }
.role-cta { display: inline-block; margin-top: 16px; color: #277844; font-size: .72rem; font-weight: 800; }
.role-card-admin .role-cta { color: #8e7910; }
.role-cta b { margin-left: 6px; font-size: .95rem; transition: margin .2s; }
.role-card:hover .role-cta b { margin-left: 11px; }

.landing-footer { display: flex; justify-content: space-between; padding: 20px 0 27px; border-top: 1px solid rgba(23,56,43,.1); color: var(--ink-soft); font-size: .67rem; }

/* ---------- Modern Login ---------- */
.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f6f8f1;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, #e4f1e6 0%, #f8f8f2 45%, #f5efc9 100%);
}

.auth-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.auth-glow-one { width: 430px; height: 430px; top: -160px; left: -135px; background: rgba(47,139,76,.13); }
.auth-glow-two { width: 300px; height: 300px; right: -90px; bottom: -80px; background: rgba(217,196,42,.16); }
.auth-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 455px); gap: 75px; align-items: center; width: min(1050px, calc(100% - 72px)); min-height: 100vh; margin: 0 auto; }
.auth-copy { display: flex; flex-direction: column; min-height: 500px; justify-content: space-between; padding: 38px 0; }
.auth-copy-content { max-width: 470px; }
.auth-copy h1 { margin: 18px 0 15px; color: var(--green-dark); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -2.5px; }
.auth-copy p { max-width: 400px; color: var(--text-muted); font-size: .95rem; line-height: 1.7; }
.auth-footer-note { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .7rem; }
.tiny-dot { width: 7px; height: 7px; border-radius: 50%; background: #4d9b61; box-shadow: 0 0 0 5px rgba(77,155,97,.13); }
.modern-login-card { position: relative; max-width: 455px; padding: 34px 34px 29px; border-radius: 20px; box-shadow: 0 22px 55px rgba(23,56,43,.13); animation: revealUp .7s both; }
.modern-login-card .back-link { display: inline-block; margin-bottom: 31px; color: var(--text-muted); font-size: .72rem; font-weight: 600; }
.modern-login-card .back-link:hover { color: var(--green-main); }
.login-role-mark { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 17px; border-radius: 14px; font-family: 'Plus Jakarta Sans'; font-size: .7rem; font-weight: 800; letter-spacing: .3px; }
.login-role-employee { color: #247342; background: #e2f0e5; }
.login-role-admin { color: #887311; background: #f6efc9; }
.modern-login-card h2 { margin: 8px 0 7px; color: var(--green-dark); font-size: 1.52rem; letter-spacing: -.8px; }
.login-lead { color: var(--text-muted); font-size: .8rem; line-height: 1.55; margin-bottom: 24px; }
.modern-login-card form { padding: 0; }
.modern-login-card .btn-primary { display: flex; justify-content: center; align-items: center; gap: 8px; }
.modern-login-card .btn-primary span { font-size: 1.15rem; transition: transform .2s; }
.modern-login-card .btn-primary:hover span { transform: translateX(4px); }
.modern-login-card .password-toggle-btn { font-size: .7rem; font-weight: 700; }

@keyframes revealUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 15px, 0); }
}

@keyframes haloPulse {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.04); opacity: 1; }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@media (max-width: 850px) {
    .landing-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
    .landing-visual { min-height: 350px; }
    .auth-layout { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
    .auth-copy { min-height: auto; gap: 28px; padding: 0; }
    .auth-copy-content { max-width: 620px; }
    .auth-copy h1 { font-size: 2.5rem; }
    .auth-footer-note { display: none; }
}

@media (max-width: 620px) {
    .landing-nav, .landing-main, .landing-footer, .auth-layout { width: min(100% - 36px, 1160px); }
    .landing-nav { padding: 20px 0; }
    .nav-context { display: none; }
    .landing-hero { min-height: auto; padding: 44px 0 35px; }
    .landing-hero h1 { font-size: 2.75rem; letter-spacing: -1.8px; }
    .landing-intro { font-size: .9rem; }
    .landing-proof { gap: 15px; }
    .landing-visual { min-height: 325px; transform: scale(.86); margin: -20px -30px; }
    .visual-float-top { right: -2px; }
    .visual-float-bottom { left: 0; }
    .access-heading { display: block; }
    .access-heading p { margin-top: 12px; }
    .role-grid { grid-template-columns: 1fr; }
    .role-card { min-height: 175px; gap: 12px; padding: 18px; }
    .role-card-art { flex-basis: 92px; height: 112px; transform: scale(.82); margin-left: -5px; }
    .role-card p { font-size: .72rem; }
    .landing-footer { gap: 10px; flex-direction: column; }
    .modern-login-card { padding: 28px 22px 25px; }
    .modern-login-card .btn-primary { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
