/*=====================================
  ESTILOS GLOBALES Y ESTRUCTURA BASE
=====================================*/


/* 1. ESTILOS DEL CUERPO (BODY) */

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    /* Asegura que ocupe toda la altura */
    margin: 0;
    /* Fondo con imagen */
    background-color: #f4f4f9;
    background-image: url('WhatsApp Image 2025-11-11 at 19.00.38(1).jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
}


/* 2. CONTENEDOR PRINCIPAL: CENTRA EL FORMULARIO */

.contenedor-principal {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    /* Se resta una altura aproximada del header (80px) */
    min-height: calc(100vh - 80px);
    padding: 20px 0;
}


/*=====================================
  ESTILOS DEL ENCABEZADO (HEADER)
=====================================*/


/* 3. ESTILOS DEL ENCABEZADO (HEADER) */

header {
    background-color: #e7e40f;
    /* Amarillo */
    padding: 20px 0;
    text-align: center;
    color: #333;
    border-bottom: 5px solid #eb5325;
    /* Naranja/Rojo decorativo */
}

header h1 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 2.5em;
}

header nav a {
    text-decoration: none;
    color: #eb2525;
    margin: 0 15px;
    font-weight: bold;
}


/*=====================================
  ESTILOS DEL FORMULARIO DE LOGIN
=====================================*/


/* 4. ESTILOS DEL CONTENEDOR DE LOGIN */

.contenedor-login {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Sombra ligeramente más marcada */
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.contenedor-login h1 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

form div {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.contenedor-login p {
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}

.contenedor-login p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.contenedor-login p a:hover {
    text-decoration: underline;
}