/* ==========================================================================
   1. Reinicio Estructural y Centrado de Pantalla
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   2. Contenedor del Sistema (Bloque Rígido Fijo)
   ========================================================================== */
.main {
  width: 400px;
  border: 1px solid #000000;
  padding: 20px;
}

/* Sección de Registro superior derecho */
.register {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.button_register {
  padding: 5px 10px;
  cursor: pointer;
}

/* ==========================================================================
   3. Bloque Informativo y Formularios de Login
   ========================================================================== */
.info_login {
  display: flex;
  flex-direction: column;
}

.h1_login {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
}

/* Contenedor de Error Dinámico */
.msg-error {
  border: 1px solid #000000;
  padding: 8px;
  margin-bottom: 15px;
  font-size: 13px;
  display: block; /* Cambiar a 'block' por PHP/JS para mostrar */
}


/* Estructura del Formulario de Enviar Usuario */
#form_send_user {
  display: flex;
  flex-direction: column;
}

.label_login {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
}

.input_login, 
.input_password {
  width: 100%;
  padding: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Botón Principal */
#btn_send_user {
  padding: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
}

/* ==========================================================================
   4. Bloque de Olvido de Contraseña y Pie de Página
   ========================================================================== */
#form_forgot_user {
  margin-top: 15px;
}

#btn_forgot_user {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

/* Pie de página del sistema */
footer {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
  width: 400px;
}
