* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f1f5f3;
    color: #222;
}


/* ==============================
   LOGIN
============================== */

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(
        135deg,
        #0f5c27,
        #1b8a3a
    );
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.logo {
    text-align: center;
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.login-card h1 {
    text-align: center;
    color: #0f5c27;
    margin: 15px 0 5px;
}

.subtitulo {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.login-card label {
    display: block;
    font-weight: 600;
    margin: 18px 0 7px;
}

.login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 9px;
    font-size: 16px;
}

.login-card button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: #1b8a3a;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.login-card button:hover {
    background: #0f5c27;
}

.mensaje-error {
    background: #ffe5e5;
    color: #b00020;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.pie-login {
    margin-top: 25px;
    text-align: center;
    color: #777;
    font-size: 13px;
}


/* ==============================
   BARRA SUPERIOR
============================== */

.barra-superior {
    background: #0f5c27;
    color: white;
    padding: 18px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.barra-superior strong {
    font-size: 21px;
}

.barra-superior span {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-top: 3px;
}

.usuario {
    display: flex;
    align-items: center;
    gap: 15px;
}

.usuario a {
    color: white;
    background: #c62828;
    padding: 9px 15px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}


/* ==============================
   DASHBOARD
============================== */

.dashboard {
    width: 94%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.bienvenida {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-bottom: 30px;
}

.bienvenida h1 {
    color: #0f5c27;
    margin-top: 0;
}

.bienvenida p {
    color: #666;
}


.modulos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.modulo {
    background: white;
    padding: 30px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .2s;
}

.modulo:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,.14);
}

.modulo .icono {
    font-size: 45px;
}

.modulo h2 {
    color: #0f5c27;
    margin-bottom: 8px;
}

.modulo p {
    color: #666;
    line-height: 1.5;
}

.modulo-cumpleanos {
    border-top: 5px solid #e0a800;
}


/* ==============================
   CELULARES
============================== */

@media (max-width: 700px) {

    .barra-superior {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .usuario {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard {
        width: 92%;
        padding: 25px 0;
    }

    .modulos {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px 22px;
    }
}