:root{
    --lp-bg:#f4f7fb;
    --lp-card:#ffffff;
    --lp-text:#111827;
    --lp-muted:#6b7280;
    --lp-border:#e5e7eb;
    --lp-primary:#111827;
    --lp-primary-2:#4f46e5;
    --lp-green:#10b981;
    --lp-red:#ef4444;
    --lp-soft:#eef2ff;
}

body{
    background:var(--lp-bg);
}

.lp-ponto-shell{
    width:min(1280px, calc(100% - 16px));
    margin:16px auto;
    font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:var(--lp-text);
}

.lp-hero{
    display:flex;
    justify-content:space-between;
    align-items:stretch;
    gap:18px;
    padding:22px;
    border-radius:28px;
    background:linear-gradient(135deg,#ffffff 0%,#eef2ff 100%);
    box-shadow:0 18px 60px rgba(15,23,42,.08);
    margin-bottom:18px;
}

.lp-eyebrow{
    display:inline-flex;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--lp-primary-2);
    margin-bottom:8px;
}

.lp-hero h1{
    margin:0 0 8px;
    font-size:34px;
    line-height:1.05;
}

.lp-hero p{
    margin:0;
    color:var(--lp-muted);
    max-width:680px;
}

.lp-balance{
    min-width:210px;
    padding:18px;
    border-radius:24px;
    background:#fff;
    border:1px solid rgba(255,255,255,.8);
    display:grid;
    align-content:center;
    box-shadow:0 12px 40px rgba(15,23,42,.08);
}

.lp-balance span{
    color:var(--lp-muted);
    font-size:13px;
}

.lp-balance strong{
    font-size:28px;
    margin-top:4px;
}

.lp-balance.is-positive strong{
    color:var(--lp-green);
}

.lp-balance.is-negative strong{
    color:var(--lp-red);
}

.lp-grid{
    display:grid;
    grid-template-columns:repeat(1, 1fr);
    gap:22px;
    margin-bottom:22px;
}

.lp-card{
    background:var(--lp-card);
    border:1px solid var(--lp-border);
    border-radius:26px;
    padding:20px;
    box-shadow:0 16px 45px rgba(15,23,42,.06);
}

.lp-card h2{
    margin:0 0 14px;
    font-size:22px;
}

.lp-card-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.lp-card-head h2{
    margin-bottom:4px;
}

.lp-card-head p{
    margin:0;
    color:var(--lp-muted);
}

.lp-status,
.lp-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:30px;
    padding:0 12px;
    border-radius:999px;
    background:var(--lp-soft);
    color:var(--lp-primary-2);
    font-weight:700;
    font-size:13px;
}

.lp-time-fields{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
    margin:18px 0;
}

.lp-time-fields.lp-time-fields-compact{
    grid-template-columns:repeat(2, minmax(0, 1fr));
}

.lp-time-field-card{
    padding:16px;
    border:1px solid var(--lp-border);
    border-radius:20px;
    background:#f9fafb;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.lp-time-field-info{
    min-width:0;
}

.lp-time-fields span{
    display:block;
    color:var(--lp-muted);
    font-size:12px;
    margin-bottom:8px;
}

.lp-time-fields strong{
    font-size:24px;
}

.lp-field-register{
    border:0;
    border-radius:999px;
    padding:10px 14px;
    background:var(--lp-primary);
    color:#fff;
    font-weight:800;
    font-size:12px;
    cursor:pointer;
    white-space:nowrap;
    transition:.18s ease;
}

.lp-field-register:hover{
    transform:translateY(-1px);
}

.lp-field-register:disabled{
    opacity:.65;
    cursor:not-allowed;
    transform:none;
}

.lp-field-locked{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:9px 13px;
    background:#ecfdf5;
    color:#047857;
    font-weight:800;
    font-size:12px;
    white-space:nowrap;
}

.lp-field-waiting{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:9px 13px;
    background:#f3f4f6;
    color:#6b7280;
    font-weight:800;
    font-size:12px;
    white-space:nowrap;
}

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

.lp-btn{
    border:0;
    border-radius:16px;
    padding:14px 18px;
    font-weight:800;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.18s ease;
}

.lp-btn:hover{
    transform:translateY(-1px);
}

.lp-btn-primary{
    background:var(--lp-primary);
    color:#fff;
}

.lp-btn-soft{
    background:var(--lp-soft);
    color:var(--lp-primary-2);
}

.lp-message{
    display:none;
    margin-top:14px;
    padding:12px 14px;
    border-radius:14px;
    font-weight:700;
}

.lp-message.ok{
    display:block;
    background:#ecfdf5;
    color:#047857;
}

.lp-message.error{
    display:block;
    background:#fef2f2;
    color:#b91c1c;
}

.lp-list{
    margin:0;
    padding-left:18px;
    color:var(--lp-muted);
    line-height:1.8;
}

.lp-kanban{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
    gap:14px;
    margin-bottom:22px;
}

.lp-employee-card{
    display:grid;
    gap:8px;
    padding:18px;
    border-radius:24px;
    background:#fff;
    border:1px solid var(--lp-border);
    text-decoration:none;
    color:var(--lp-text);
    box-shadow:0 12px 35px rgba(15,23,42,.06);
}

.lp-employee-card span{
    font-weight:900;
    font-size:18px;
}

.lp-employee-card strong{
    font-size:15px;
}

.lp-employee-card small{
    color:var(--lp-muted);
}

.lp-employee-card.positive strong{
    color:var(--lp-green);
}

.lp-employee-card.negative strong{
    color:var(--lp-red);
}

.lp-form{
    display:grid;
    gap:14px;
}

.lp-form label{
    display:grid;
    gap:7px;
    color:var(--lp-muted);
    font-weight:700;
    font-size:13px;
}

.lp-form input,
.lp-form select,
.lp-form textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid var(--lp-border);
    border-radius:14px;
    min-height:46px;
    padding:10px 12px;
    color:var(--lp-text);
    background:#fff;
    font:inherit;
}

.lp-form textarea{
    min-height:90px;
    resize:vertical;
}

.lp-form-4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.lp-week-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
    gap:12px;
}

.lp-week-grid small{
    color:var(--lp-muted);
}

.lp-table-wrap{
    width:100%;
    overflow:auto;
}

.lp-table{
    width:100%;
    border-collapse:collapse;
    min-width:780px;
}

.lp-table th,
.lp-table td{
    padding:13px 10px;
    border-bottom:1px solid var(--lp-border);
    text-align:left;
    font-size:14px;
}

.lp-table th{
    color:var(--lp-muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.lp-history-head{
    display:grid;
    grid-template-columns:1fr;
    align-items:start;
    gap:14px;
    margin-bottom:18px;
}

.lp-history-head h2{
    margin:0;
    font-size:28px;
    line-height:1.15;
    white-space:normal;
}

.lp-history-head h2 span{
    display:block;
    margin-top:8px;
    color:var(--lp-muted);
    font-size:22px;
    font-weight:600;
}

.lp-month-filter{
    display:grid;
    grid-template-columns:220px 240px;
    align-items:center;
    gap:10px;
    justify-content:start;
    width:100%;
    max-width:480px;
}

.lp-month-filter input[type="month"],
.lp-month-employee-filter{
    width:100%;
    min-height:42px;
    border:1px solid var(--lp-border);
    border-radius:12px;
    padding:7px 12px;
    color:var(--lp-text);
    background:#fff;
    font:inherit;
    font-size:14px;
    font-weight:800;
}

.lp-month-arrow,
.lp-month-filter .lp-btn{
    display:none !important;
}

.lp-balance-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.lp-balance-chip.is-negative{
    background:#fee2e2;
    color:#b91c1c;
}

.lp-balance-chip.is-ok{
    background:#dbeafe;
    color:#1d4ed8;
}

.lp-balance-chip.is-positive{
    background:#dcfce7;
    color:#047857;
}

.lp-login-wrapper{
    width:min(520px, calc(100% - 24px));
    min-height:80vh;
    margin:0 auto;
    display:grid;
    place-items:center;
    font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lp-login-card{
    width:100%;
    max-width:460px;
    margin:40px auto;
    padding:34px;
    border-radius:32px;
    background:linear-gradient(145deg,#ffffff 0%,#f7f9ff 100%);
    border:1px solid rgba(229,231,235,.95);
    box-shadow:0 28px 90px rgba(15,23,42,.12);
    box-sizing:border-box;
}

.lp-login-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
    padding:8px 13px;
    border-radius:999px;
    background:var(--lp-soft);
    color:var(--lp-primary-2);
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
}

.lp-login-card h2{
    margin:0 0 10px;
    font-size:36px;
    line-height:1.05;
    letter-spacing:-.04em;
    color:var(--lp-text);
}

.lp-login-card > p{
    margin:0 0 26px;
    color:var(--lp-muted);
    font-size:16px;
    line-height:1.5;
}

.lp-login-card form{
    display:grid;
    gap:16px;
    margin:0;
}

.lp-login-card form p{
    margin:0;
}

.lp-login-card .login-username,
.lp-login-card .login-password{
    display:grid;
    gap:8px;
}

.lp-login-card .login-username label,
.lp-login-card .login-password label{
    color:var(--lp-muted);
    font-size:13px;
    font-weight:900;
    letter-spacing:.01em;
}

.lp-login-card input[type="text"],
.lp-login-card input[type="password"]{
    width:100%;
    box-sizing:border-box;
    min-height:54px;
    border:1px solid var(--lp-border);
    border-radius:18px;
    background:#fff;
    padding:13px 15px;
    color:var(--lp-text);
    font:inherit;
    font-size:17px;
    font-weight:800;
    outline:none;
    box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.lp-login-card input[type="text"]:focus,
.lp-login-card input[type="password"]:focus{
    border-color:var(--lp-primary-2);
    box-shadow:0 0 0 4px rgba(79,70,229,.12), 0 8px 24px rgba(15,23,42,.05);
}

.lp-login-card .login-remember label{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--lp-muted);
    font-size:14px;
    font-weight:800;
}

.lp-login-card .login-remember input{
    width:18px;
    height:18px;
    accent-color:var(--lp-primary-2);
}

.lp-login-card .login-submit{
    margin-top:4px;
}

.lp-login-button,
.lp-login-card .button,
.lp-login-card input[type="submit"]{
    width:100% !important;
    min-height:58px !important;
    border:none !important;
    outline:none !important;
    border-radius:20px !important;
    background:linear-gradient(135deg,#111827 0%,#1f2937 100%) !important;
    color:#fff !important;
    font-size:17px !important;
    font-weight:900 !important;
    letter-spacing:-.01em;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    box-shadow:0 18px 38px rgba(17,24,39,.22) !important;
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    padding:0 20px !important;
}

.lp-login-button:hover,
.lp-login-card .button:hover,
.lp-login-card input[type="submit"]:hover{
    transform:translateY(-2px);
    box-shadow:0 24px 48px rgba(17,24,39,.28);
}

.lp-login-button:active,
.lp-login-card .button:active,
.lp-login-card input[type="submit"]:active{
    transform:translateY(0);
    opacity:.96;
}

@media (max-width: 820px){

    .lp-hero,
    .lp-grid{
        grid-template-columns:1fr;
        flex-direction:column;
    }
    .lp-time-fields,
    .lp-time-fields.lp-time-fields-compact,
    .lp-form-4{
        grid-template-columns:1fr;
    }

    .lp-history-head{
        grid-template-columns:1fr;
        text-align:center;
        justify-items:center;
    }

    .lp-month-filter{
        width:100%;
        max-width:100%;
        grid-template-columns:1fr 1fr;
        justify-content:stretch;
    }
}

@media (max-width: 520px){
    .lp-time-fields,
    .lp-time-fields.lp-time-fields-compact,
    .lp-form-4{
        grid-template-columns:1fr;
    }

    .lp-time-field-card{
        align-items:flex-start;
        flex-direction:column;
    }

    .lp-field-register,
    .lp-field-locked,
    .lp-field-waiting{
        width:90%;
    }

    .lp-hero h1{
        font-size:28px;
    }

    .lp-ponto-shell{
        width:calc(100% - 10px);
        margin:5px auto;
    }

    .lp-card,
    .lp-hero{
        padding:16px;
        border-radius:22px;
    }

    .lp-month-filter{
        display:grid;
        grid-template-columns:minmax(0, 1fr);
        gap:8px;
        width:100%;
        max-width:100%;
    }

    .lp-month-employee-filter,
    .lp-month-filter input[type="month"]{
        width:100%;
        max-width:100%;
        min-width:0;
        box-sizing:border-box;
        min-height:40px;
        font-size:13px;
    }

    .lp-history-head h2{
        font-size:24px;
        white-space:normal;
        text-align:center;
    }

    .lp-login-wrapper{
        width:calc(100% - 12px);
        min-height:78vh;
    }

    .lp-login-card{
        padding:26px 22px;
        border-radius:26px;
    }

    .lp-login-card h2{
        font-size:30px;
    }

    .lp-login-card input[type="text"],
    .lp-login-card input[type="password"]{
        min-height:52px;
        font-size:16px;
    }
}