* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f6f8;
    color: #263238;
    font-family: Arial, Helvetica, sans-serif;
}


/* LOGIN */

.login-body {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #0b3b60;
}

.login-card {

    width: 420px;

    max-width: 92%;

    background: white;

    padding: 35px;

    border-radius: 14px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.25);
}

.login-card h1 {

    margin: 0;

    color: #0b3b60;

    font-size: 38px;
}

.login-card h2 {

    margin-bottom: 5px;
}

.login-card label {

    display: block;

    margin-top: 15px;

    margin-bottom: 5px;

    font-weight: bold;
}


/* INPUTS */

input,
select,
textarea {

    width: 100%;

    padding: 10px;

    border: 1px solid #ccd5db;

    border-radius: 7px;

    font-size: 14px;
}


/* BOTONES */

.btn {

    display: inline-block;

    padding: 10px 15px;

    border: none;

    border-radius: 7px;

    background: #e6ebef;

    color: #263238;

    text-decoration: none;

    cursor: pointer;

    font-weight: bold;
}

.btn.primary {

    background: #0b3b60;

    color: white;
}

.btn.danger {

    background: #c93645;

    color: white;
}

.btn.full {

    width: 100%;

    margin-top: 20px;
}


/* MENU */

.topbar {

    background: #0b3b60;

    color: white;

    padding: 12px 25px;

    display: flex;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.logo {

    color: white;

    text-decoration: none;

    font-size: 22px;

    font-weight: bold;
}

.topbar nav {

    display: flex;

    gap: 5px;

    flex-wrap: wrap;
}

.topbar nav a {

    color: white;

    text-decoration: none;

    padding: 8px;

    border-radius: 5px;

    font-size: 13px;
}

.topbar nav a:hover {

    background: rgba(255,255,255,.15);
}


/* CONTENEDOR */

.container {

    width: 94%;

    max-width: 1400px;

    margin: 30px auto;
}

.page-head {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}


/* TARJETAS */

.cards {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.stat {

    background: white;

    padding: 20px;

    border-radius: 10px;

    border: 1px solid #e0e6eb;
}

.stat span {

    color: #71808a;

    font-size: 13px;
}

.stat b {

    display: block;

    color: #0b3b60;

    font-size: 30px;

    margin-top: 8px;
}


/* PANELES */

.panel {

    background: white;

    border-radius: 10px;

    padding: 20px;

    border: 1px solid #e0e6eb;

    margin-bottom: 20px;
}


/* TABLAS */

table {

    width: 100%;

    border-collapse: collapse;
}

th {

    background: #0b3b60;

    color: white;

    padding: 10px;

    text-align: left;

    font-size: 12px;
}

td {

    padding: 10px;

    border-bottom:
        1px solid #e4e9ed;

    font-size: 13px;
}


/* FORMULARIOS */

.form-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.form-grid label {

    font-weight: bold;

    font-size: 13px;
}

.full {

    grid-column: 1 / -1;
}


/* ALERTAS */

.alert {

    padding: 12px;

    background: #eaf6ee;

    border: 1px solid #bde0c9;

    border-radius: 7px;

    margin-bottom: 15px;
}

.alert.danger {

    background: #fff0f1;

    color: #8b2632;

    border-color: #efc1c5;
}


/* RESPONSIVE */

@media(max-width:900px) {

    .cards {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .form-grid {

        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {

    .cards {

        grid-template-columns: 1fr;
    }

    .topbar {

        align-items: flex-start;
    }
}