:root{
    --primary:#0f766e;
    --primary-dark:#115e59;
    --accent:#2563eb;
    --warning:#f59e0b;
    --danger:#dc2626;
    --success:#16a34a;
    --ink:#111827;
    --muted:#6b7280;
    --line:#e5e7eb;
    --surface:#ffffff;
    --page:#f6f8fb;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    color:var(--ink);
    background:var(--page);
    font-family:Arial, Helvetica, sans-serif;
}

a{
    color:var(--primary);
}

.app-shell{
    min-height:100vh;
    background:linear-gradient(180deg,#f8fafc 0%,#eef6f4 100%);
}

.site-nav{
    min-height:68px;
    border-bottom:1px solid var(--line);
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(10px);
}

.brand-mark{
    width:42px;
    height:42px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:var(--primary);
    font-weight:700;
}

.hero{
    min-height:calc(100vh - 68px);
    display:flex;
    align-items:center;
    padding:56px 0;
}

.hero h1{
    font-size:clamp(2rem,4vw,4.35rem);
    line-height:1.05;
    font-weight:800;
    letter-spacing:0;
}

.hero p{
    color:#374151;
    font-size:1.08rem;
}

.hero-visual{
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.12);
    overflow:hidden;
}

.hero-visual-header{
    height:38px;
    border-bottom:1px solid var(--line);
    background:#f9fafb;
    display:flex;
    align-items:center;
    gap:7px;
    padding:0 14px;
}

.dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#cbd5e1;
}

.metric-card,.soft-card,.auth-card{
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--surface);
    box-shadow:0 12px 30px rgba(15,23,42,.07);
}

.metric-card{
    padding:18px;
}

.metric-card small{
    display:block;
    color:var(--muted);
    margin-bottom:8px;
}

.metric-card strong{
    font-size:2rem;
}

.feature-tile{
    height:100%;
    border:1px solid var(--line);
    border-radius:8px;
    padding:18px;
    background:#fff;
}

.feature-icon{
    width:40px;
    height:40px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:var(--primary);
}

.btn-primary,.bg-primary{
    background-color:var(--primary)!important;
    border-color:var(--primary)!important;
}

.btn-primary:hover{
    background-color:var(--primary-dark)!important;
    border-color:var(--primary-dark)!important;
}

.btn-outline-primary{
    color:var(--primary)!important;
    border-color:var(--primary)!important;
}

.btn-outline-primary:hover{
    color:#fff!important;
    background:var(--primary)!important;
}

.auth-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px 16px;
    background:linear-gradient(135deg,#ecfeff 0%,#f8fafc 52%,#eef2ff 100%);
}

.auth-card{
    width:100%;
    max-width:460px;
    padding:30px;
}

.auth-card.auth-wide{
    max-width:720px;
}

.auth-split{
    width:100%;
    max-width:980px;
    display:grid;
    grid-template-columns:1fr 460px;
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.12);
}

.auth-panel{
    padding:38px;
    background:linear-gradient(160deg,#0f766e 0%,#115e59 58%,#1d4ed8 100%);
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:560px;
}

.auth-panel .brand-mark{
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.28);
}

.auth-panel h1{
    font-size:2.2rem;
    line-height:1.12;
    font-weight:800;
    letter-spacing:0;
    margin:28px 0 12px;
}

.auth-panel p{
    color:rgba(255,255,255,.86);
    margin:0;
}

.auth-panel-list{
    display:grid;
    gap:12px;
    margin-top:28px;
}

.auth-panel-item{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:12px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:8px;
    background:rgba(255,255,255,.10);
}

.auth-panel-item i{
    margin-top:3px;
}

.auth-form-area{
    padding:38px;
}

.auth-title{
    font-size:1.55rem;
    font-weight:800;
}

.form-control,.form-select{
    border-radius:8px;
    min-height:44px;
}

.form-control:focus,.form-select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 .2rem rgba(15,118,110,.14);
}

.app-sidebar{
    position:fixed;
    left:0;
    top:0;
    width:250px;
    height:100%;
    overflow:auto;
    background:#10201f;
    color:#fff;
}

.app-sidebar .logo{
    padding:22px 20px;
    font-size:1.05rem;
    font-weight:800;
    background:#0a1716;
    text-align:left;
}

.app-sidebar a{
    display:flex;
    align-items:center;
    gap:10px;
    color:#e5f3f1;
    text-decoration:none;
    padding:13px 20px;
}

.app-sidebar a:hover,.app-sidebar a.active{
    background:#173b38;
    color:#fff;
}

.app-content{
    margin-left:250px;
    padding:26px;
}

.topbar,.table-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.topbar{
    padding:18px 20px;
    margin-bottom:20px;
}

.table-card{
    padding:20px;
}

.card,.card-box{
    border-radius:8px!important;
}

.card{
    border:1px solid var(--line)!important;
    box-shadow:0 10px 24px rgba(15,23,42,.06)!important;
}

.card-header{
    border-radius:8px 8px 0 0!important;
}

.status-badge{
    border-radius:999px;
    padding:.38rem .65rem;
}

.foto-thumb,.foto{
    border-radius:8px!important;
}

@media (max-width: 768px){
    .hero{
        min-height:auto;
        padding:32px 0;
    }

    .app-sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .app-content,.content{
        margin-left:0!important;
        padding:16px;
    }

    .auth-split{
        grid-template-columns:1fr;
    }

    .auth-panel{
        min-height:auto;
        padding:26px;
    }

    .auth-form-area{
        padding:26px;
    }
}
