/* ==========================================================================
   RESET
   ========================================================================== */

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

html,
body{
    height:100%;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f6fa;
    color:#111827;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header{
    height:60px;
    background:#1f2937;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.logo{
    font-size:20px;
    font-weight:700;
}

.user{
    font-size:14px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.wrapper{
    display:flex;
    min-height:calc(100vh - 105px);
}

.content{
    flex:1;
    padding:30px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar{
    width:240px;
    background:#111827;
    color:#fff;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    border-bottom:1px solid #202938;
}

.sidebar a{
    display:block;
    padding:16px;
    color:#fff;
    text-decoration:none;
    transition:.2s;
}

.sidebar a:hover{
    background:#374151;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer{
    height:45px;
    background:#1f2937;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ==========================================================================
   LOGIN
   ========================================================================== */

.auth-page{
    min-height:calc(100vh - 105px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.auth-card{
    width:100%;
    max-width:420px;
    background:#fff;
    border-radius:16px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.auth-logo{
    text-align:center;
    font-size:32px;
    font-weight:800;
    color:#111827;
    margin-bottom:20px;
}

.auth-card h1{
    text-align:center;
    font-size:24px;
    margin-bottom:8px;
}

.auth-subtitle{
    text-align:center;
    color:#6b7280;
    margin-bottom:30px;
}

.auth-card label{
    display:block;
    margin-bottom:18px;
    font-size:14px;
    color:#374151;
}

.auth-card input[type=email],
.auth-card input[type=password]{
    width:100%;
    height:46px;
    margin-top:6px;
    padding:0 14px;
    border:1px solid #d1d5db;
    border-radius:10px;
    outline:none;
    transition:.2s;
}

.auth-card input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.auth-options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    font-size:14px;
}

.checkbox{
    display:flex !important;
    align-items:center;
    gap:8px;
    margin:0 !important;
}

.checkbox input{
    width:auto !important;
    height:auto !important;
    margin:0 !important;
}

.auth-options a{
    color:#2563eb;
    text-decoration:none;
}

.auth-options a:hover{
    text-decoration:underline;
}

.auth-card button{
    width:100%;
    height:48px;
    border:0;
    border-radius:10px;
    background:#111827;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.auth-card button:hover{
    background:#374151;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert{
    padding:14px;
    border-radius:8px;
    margin-bottom:20px;
    font-size:14px;
}

.alert-danger{
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fecaca;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:30px;
}

.dashboard-card{
    background:#fff;
    border-radius:14px;
    padding:24px;
    box-shadow:0 5px 15px rgba(0,0,0,.06);
}

.dashboard-card h3{
    font-size:16px;
    margin-bottom:12px;
    color:#374151;
}

.dashboard-card p{
    font-size:28px;
    font-weight:bold;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width:768px){

    .sidebar{
        display:none;
    }

    .content{
        padding:20px;
    }

    .auth-card{
        padding:25px;
    }

}