body{
    background:#111;
    color:#fff;
    font-family:Arial,sans-serif;
}

.login{
    max-width:400px;
    margin:80px auto;
    text-align:center;
}

input,
button{
    width:100%;
    padding:10px;
    margin:6px 0;
}

button{
    background:#1fb36a;
    border:0;
    color:#fff;
}

.err{
    background:#ffe5e5;
    color:#b00020;
    padding:10px 12px;
    border-radius:8px;
    margin:12px 0 16px;
    font-weight:600;
}

/* ===========================
   PERFIL ADMIN
=========================== */

.perfil-container{
    max-width:520px;
    margin:40px auto;
}

.perfil-card{
    background:#fff;
    border-radius:14px;
    padding:30px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.perfil-card label{
    display:block;
    margin-top:15px;
    font-weight:600;
    color:#111;
}

.perfil-card input,
.perfil-card select{
    width:100%;
    padding:10px;
    margin-top:6px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:14px;
}

.perfil-card button{
    margin-top:22px;
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#0b7a3b;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
}

.perfil-card button:hover{
    background:#095f30;
}

/* ===========================
   TABLAS
=========================== */

table{
    width:100%;
    border-collapse:collapse;
}

/* ===========================
   CARD
=========================== */

.card{
    background:#fff;
    border-radius:14px;
    padding:25px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

/* ===========================
   FORMULARIOS
=========================== */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
    color:#333;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
}

.btn-success{
    background:#0b7a3b;
    color:#fff;
    padding:12px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

.btn-success:hover{
    background:#08642f;
}

/* ===========================
   BOTÓN ELIMINAR
=========================== */

a.btn-action.delete{
    display:inline-block;
    padding:10px 18px;
    background:#dc3545;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
}

a.btn-action.delete:hover{
    background:#bb2d3b;
    color:#fff;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:900px){

    .form-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    table thead{
        display:none;
    }

    table tr{
        display:block;
        margin-bottom:15px;
        border:1px solid #ddd;
        border-radius:6px;
    }

    table td{
        display:block;
        text-align:right;
        padding:8px;
    }

    table td::before{
        content:attr(data-label);
        float:left;
        font-weight:bold;
    }

    .btn-back{
        display:inline-block;
        margin-bottom:6px;
    }

}

/* ===========================
   LOGIN ADMIN MODERNO
=========================== */

body.login-page{
    min-height:100vh;
    margin:0;
    background:linear-gradient(135deg,#0b0f0d,#111,#063d22);
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-card{
    width:420px;
    max-width:90%;
    background:#ffffff;
    padding:38px;
    border-radius:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    text-align:center;
}

.login-card .login-logo{
    width:170px;
    max-width:100%;
    display:block;
    margin:0 auto 20px;
}

.login-card h2{
    margin:0;
    color:#111;
    font-size:26px;
}

.login-subtitle{
    margin:8px 0 25px;
    color:#666;
    font-size:14px;
}

.login-card input{
    width:100%;
    box-sizing:border-box;
    padding:14px;
    margin:0 0 14px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
}

.login-card button{
    width:100%;
    padding:14px;
    margin:0;
    border:none;
    border-radius:10px;
    background:#0b7a3b;
    color:#fff;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.login-card button:hover{
    background:#095f30;
}

.login-error{
    background:#ffe5e5;
    color:#b00020;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
}